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 PatelPosted Oct 10, 2009, 7:27 AM
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
moni moniPosted Oct 10, 2009, 7:32 AM
moni moniPosted Oct 10, 2009, 7:18 AM
Kirtan PatelPosted Oct 10, 2009, 7:12 AM
Explain it More Clearly Can got you