In VB.net it is possible to trap the event made by the user.. here is a simple code to do such thing..
- Code:
Protected Sub txtpassword_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles _
txtpassword.KeyDown, txtpassword.KeyDown
If e.KeyCode = Keys.Enter Then
verifyentered() // Procedure to be done if enter was pressed
End If
If e.KeyCode = Keys.Tab Then
Button1.Select() // Procedure to be done if tab was pressed
End If
e.Handled = True
End Sub
in order for tab to work as you code it.. you must disable tabstop first in properties..
_________________
credit goes to the original uploader of the codes..
In this forum we will share the knowledge we have to every single individual who shows respect and interest.. If you stay.. you learn.. if not.. then please go.........
--it's me Admin"D"