make button default?

bjay55

Freshman
Joined
Mar 19, 2005
Messages
25
i was wondering how you make a button the default button on a form, using visual basic .net. In visual basic 6 the command button had a property called default but i cannot find any such property in .net. You help would be greatly appreciated. Thankyou
 
In .Net Microsoft took a more logical approach and made the default button a property of the form rather than of the button. Select the form in the designer, and look in the properties. The property is "AcceptButton". Also note the "CancelButton" property.
 
Thank you

Thank you very much for your help. I've just started using .net and am trying to learn all the different ways of doing things. Thank you again.
 
Back
Top