Click here to Skip to main content
15,921,156 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can anybody give an example for SendKeys in vb/C#.net ?
Posted

hi use this code while u run a login form that time u enter username and press enter key the focus goes to password text box (ie): enter key act like tab key it is useful for as many times when we develop a application many text boxes


SQL
If Asc(e.KeyChar) = 13 Then
                SendKeys.Send("{TAB}")
            End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900