Connecting Tech Pros Worldwide Forums | Help | Site Map

enter as tab

Newbie
 
Join Date: Oct 2009
Posts: 25
#1: 3 Weeks Ago
hi,
how can i use Enter key work as tab

tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,777
#2: 3 Weeks Ago

re: enter as tab


Do you mean globally throughout your form, or just for a couple controls?

You can check the .KeyPress event of the control.
If the key pressed is [ENTER] then move the Focus to the next control.
If it is not the [ENTER] then do nothing and let the control handle it as normal.
Reply