textbox button and enter handling

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

a have a form w/ a textbox and a button
i want when the user presses enter in the
textbox the button to pressed automatically

how can i do this?

TIA
 
Set the forms AcceptButton to the name of the button you want to be clicked

This clicks the button for Enter in Every Control...
 
* "John Smith said:
a have a form w/ a textbox and a button
i want when the user presses enter in the
textbox the button to pressed automatically

Assign the button to the form's '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