In Internet Explorer, for example, when you hit return in the address
bar, the Go button is pressed. In my program, I have a toolstrip with a
textbox and button. How do I ensure the button is 'clicked' when Enter
is pressed in the text box.
I can't set the form's AcceptButton property to the toolStripButton -
it doesn't allow toolStripButtons to be set as the AcceptButton.
As a last resort, I could create a keypress event handler for the
textbox that called button_click() if return was pressed but that's not
a great solution.
TIA