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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question regarding keystrokes and shortcuts....

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
How do I make the enter key behave as a tab key. Even if I code my textfield to accept the Enter key on the keypress event, the cursor will not advance to the next textfield.
And also, the &Exit command button that I created, where and how will I code it such that the command will be executed when E is pressed. Does it need to have the focus for it to work.

Any help will be greatly appreciated.
 
Hi, For the enter to tab part look into Sendkeys
I dont have vb on this puter so cant get more specific. Probably be something like this if i remmeber right...
if keycode=13 then sendkeys {tab} Im not sure of the syntax for the keys off the top of my head..thast what help files etc are for.
As for the second part, you have to hold ALT down and press E. It should do it as long as the form has focus
Hope i didnt bugger anything up, and helped
Dragnut
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top