Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Property to link a cmdbutton to a enter key?

Posted on 2006-04-28
1
Medium Priority
?
232 Views
Last Modified: 2008-03-10
Its been a while since I wrote a VB app and my memory has faded but I seem to recall a property that would allow you to link the enter key for a control to a cmd button...
For instance, I'm typing in a texbox and as soon as I hit the enter key the submit command button is automatically clicked. I know I can do this by monitoring the ascii vals of the key events but I would rather do this via properties (if possible).
0
Comment
Question by:mccainz2
1 Comment
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 16561753
Hi mccainz2,

You have to set the Default property of one button.

Cheers!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

810 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