Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
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

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
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap