New to Winforms, should be easy...

  • Thread starter Thread starter Wardeaux
  • Start date Start date
W

Wardeaux

Hey all,
been writing ASP.NET code for a while, want to take one of those apps to
the desktop. Trying to set the "OK" button on my login to the default
action when "enter" is pressed... can't see where to set that property...
any help is most appreciated!!
MTIA
wardeaux
 
* "Wardeaux said:
been writing ASP.NET code for a while, want to take one of those apps to
the desktop. Trying to set the "OK" button on my login to the default
action when "enter" is pressed... can't see where to set that property...

Assign the button to the form's 'AcceptButton' property.
 
in vb6 you set a property of the button - but in dot-net you set a property
of the form (the AcceptButton Property)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top