A
Andy
Hi,
I have a user control which has a text box and button on it. I'm
trying to have the same code fire when the user presses Enter in the
text box as would have if the user clicked the button.
The control is on a form which has acceptButton defined. The problem
is that when I press enter, the form containing the control closes
(because it 'clicks' the OK button) and the text box never even gets a
chance to process and handle the key press.
Any ideas?
Thanks
Andy
I have a user control which has a text box and button on it. I'm
trying to have the same code fire when the user presses Enter in the
text box as would have if the user clicked the button.
The control is on a form which has acceptButton defined. The problem
is that when I press enter, the form containing the control closes
(because it 'clicks' the OK button) and the text box never even gets a
chance to process and handle the key press.
Any ideas?
Thanks
Andy