Solved

Command Button problem..

Posted on 2003-12-02
3
366 Views
Last Modified: 2010-05-18
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.. :)
0
Comment
Question by:michelle_branch
3 Comments
 
LVL 39

Accepted Solution

by:
appari earned 50 total points
Comment Utility
set the default property of the command button to true.
0
 
LVL 1

Expert Comment

by:MsLim
Comment Utility
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
0
 

Author Comment

by:michelle_branch
Comment Utility
waa.. so easy aa..
i lost 50 points just for this easy one.. huhu
nevermind laa.. i owe you 2 times Appari.. thanks
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now