dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB
Expertise: Intermediate
Jun 14, 2006

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Make a Button Click When the User Presses Enter

To make a button click when the user presses enter without the focus on it, simply add this code to the start of your onLoad event on your form:

Command1.Default = True
That would make the button Command1 the default one when the enter key is pressed by the end user.

Ahmed Hosny
 
Thanks for your registration, follow us on our social networks to keep up-to-date