VS2005 Focus or Default Button

T

TCORDON

I have a Login usercontrol that I place in many pages in my project, the
quiestion is, did Microsoft do something in VS2005 to help provide a default
button for a form ( so that this button's click event is ran when a user
presses the enter key anywhere in a form) or does it have to be handled
another way? if so, how because in this usercontrol if you press the enter
key in the pwd textbox the codebehind in the first clickable control on the
form is executed.

TIA!
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top