pressing enter instead of button

bigmac

Registered User.
Local time
Yesterday, 20:08
Joined
Oct 5, 2008
Messages
302
hi all, can you help please,
i have a password logon form, after the user enters his password he then has to click on the button to validate and move to the next form.
i have been asked to set this so that the user only has to hit enter on the keyboard to do this.
any ideas please?
 
With your button selected, in the Properties pane, select the Other tab and sett the Default property of your button to Yes.
 
Lookup on the KeyDown event..
 
check the taborder of the controls. after he enters his password, the next control needs to be the button.

then pressing enter will execute the button click event.

alternatively code the afterupdate of the password control to run the login process. then you do not need a button.
 
Set the Default property for the button to Yes.
This way you can either click the button either press enter.
 

Users who are viewing this thread

Back
Top Bottom