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.
 
Back
Top