Link to home
Start Free TrialLog in
Avatar of michelle_branch
michelle_branch

asked on

Command Button problem..

Hi experts,
I have a few buttons  in my application ; for example "enter" "close" "stop" buttons
after user have fill in the inputs, usually user need to click on the "enter" button to proceed.
Instead of clicking the button, how can i make it so that user can just push Enter on the keyboard and the "enter" button in my application will automatically clicked. Meaning that i wannt to avoid using mouse.

i have mention a have a few buttons, so maybe in simple words, i want to make "enter" button to be default button so that i just need to push Enter on the keyboard to activate it instead of clicking on it.

i hope my question is clear.. :)
ASKER CERTIFIED SOLUTION
Avatar of appari
appari
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MsLim
MsLim

set the tabindex order in the right sequence , upon complete enetring let say the last field tabindex order is 20 , the this enter command button must be set as 21 . so that you can press enter upon complete last line and press tab key.

the others way is set the caption of this enter button with one character is underline and this underline character must unique in this form (eg E is underline).then upon finish entering , User can just press Alt key with e key together
Avatar of michelle_branch

ASKER

waa.. so easy aa..
i lost 50 points just for this easy one.. huhu
nevermind laa.. i owe you 2 times Appari.. thanks