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

Using Enter key instead of Tab

Status
Not open for further replies.

MickJ

Programmer
Feb 20, 2002
21
US
How do i get the Enter key to move from txt box to txt box on my form instead of using the tab key? It must be possible...right?
 
Thanks for the response. Do I put this on each txt box or is there a global way of doing it?
 
You could use KeyPreview=True on the Form and in Form_KeyPress
If lcase$(Typename(activecontrol)) = 'textbox' then
if keyascii = 13 then
keyascii = 0
sendkeys "{tab}"
end if
End if Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Thanks, I'll get one of 'em to work:)
Regards
Mick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top