bjay55 Posted March 20, 2005 Posted March 20, 2005 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 Quote
Leaders snarfblam Posted March 20, 2005 Leaders Posted March 20, 2005 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. Quote [sIGPIC]e[/sIGPIC]
bjay55 Posted March 20, 2005 Author Posted March 20, 2005 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.