Tab event of textbox
hi i have add 5 text boxes.. when the tab index changes ie i have entered value in 1 in textbox1 and when i press on tab then the cursor changed to text box2 and the value 2 is printed in text box and tab index change value 3 in the textbox3. any one help me..

Kirtan PatelRank #292 · 8.6K reputationPosted Oct 10, 2009, 3:27 AM EDT
TextBox1.TabIndex = 0
TextBox2.TabIndex = 1
TextBox3.TabIndex = 2
TextBox1.Text = 1
End Sub
Private Sub TextBox2_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.Enter
TextBox2.Text = 2
End Sub
Private Sub TextBox3_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.Enter
TextBox3.Text = 3
End Sub
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 10, 2009, 3:12 AM EDT
Explain it More Clearly Can got you
moni moni41 reputationPosted Oct 10, 2009, 3:18 AM EDT
moni moni41 reputationPosted Oct 10, 2009, 3:32 AM EDT