I have a 3 TextBox control in a Form, TextBox1, TextBox2 and TextBox3.
In VB6, I change the Keypreview of a Form into True and put this code into the Keypress Event of the Form.
If keyascii = 13 then
Sendkeys vbtab
Endif
But how about in VB.NET?
Printable View
I have a 3 TextBox control in a Form, TextBox1, TextBox2 and TextBox3.
In VB6, I change the Keypreview of a Form into True and put this code into the Keypress Event of the Form.
If keyascii = 13 then
Sendkeys vbtab
Endif
But how about in VB.NET?
vb .net I think it is
Code:SendKeys.Send(Microsoft.VisualBasic.ControlChars.Tab)
or u can give focus to the other textbox :D