Property to link a cmdbutton to a enter key?

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).
LVL 5
mccainz2Asked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
Hi mccainz2,

You have to set the Default property of one button.

Cheers!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.