Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW DO I USE CODE TO SIMULATE KEYBOARD KEYS BEING PRESSED? 1

Status
Not open for further replies.

TNN

Programmer
Sep 13, 2000
417
US
I am using tab to move from text box to text box on a form. I want to use the return key to accomplish the same thing.

I am using the KeyDown event to recognize the return key being pressed but then how do I simulate, in code in the KeyDown event, the tab key being depressed to move to the next text box?
Thank You,
TNN, Tom
TNPAYROLL@AOL.COM



TOM
 
Use SendKeys. Type it into your sub and press F1. MSDN will tell you how it works.
VCA.gif

Alt255@Vorpalcom.Intranets.com
 
Alt255,
Thank you. Didn'T know about SendKeys. I was trying to use the old KeyAscii--wasn't working. Thanks Again.
TNN, Tom
TNPAYROLL@AOL.COM

TOM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top