Default

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What's the equivilant in VB.Net 2005 for the Default Property. For example,
if I set the Default Property to TRUE for a btnPrint button, pressing the
ENTER key will automatically invoke that button's event.
 
What's the equivilant in VB.Net 2005 for the Default Property. For example,
if I set the Default Property to TRUE for a btnPrint button, pressing the
ENTER key will automatically invoke that button's event.

Set Form.AcceptButton to the button you want to be the default button
- if you want to set a cancel button, then set Form.CancelButton.
 
I did this by using

AcceptButton = me.btnLogon

I assume this is correct because it's working.
 
Back
Top