[ Radovan__III @ 10.04.2006. 22:21 ] @
imam recimo 2 textbox-a zeleo bi da kad u jednom ukucam dva slova da odma prebaci fokus na drugi box i da nastavim tamo da kucam

C#
[ VerbatimBOT @ 10.04.2006. 22:55 ] @
event onTextChange za taj TekstBoks
koncept je sledeći:
da provera da li je textBox.Text.Length() == 2, ako jeste drugiTekstBoks.Focus()
[ skorpija @ 14.05.2008. 18:56 ] @
Znaci treba mi kod za VB.NET, kada u texbox ukucam 4 broja da mi sam prebaci fokus u sledeci textbox2

nasao sam nesto na netu ali ne radi

code:

Private Sub sifra_napred(ByVal KeyCode As Integer, ByVal Shift As Integer)

if keyascii=13 then
text2.setfocus
end if

end sub


Unaprije hvala

[ electroNik @ 18.05.2008. 08:17 ] @
Code:
Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
    If TextBox1.Text.Length = 4 Then
        TextBox2.Focus()
    End If
End Sub