Would you like to react to this message? Create an account in a few clicks or log in to continue.
For Questions and Assistance please use the proper Category.. please..
Welcome guys!!.. In order for you guys to post your Questions and assistance requests,, please REGISTER first.. Only members can post.. If you have requests then feel free to email ADMIN neuron or SPAMMER onatzky.. thanks!
Subject: Handle Keystrokes in VB.NET Thu Aug 13, 2009 1:24 am
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..