S
Simon Verona
Sorry for the repost, but this group seems to be more "active" than the
group that I posted my question, and it's probably as valid here as there!
I have a usercontrol, which contains a textbox (as well as other controls).
The textbox is set for multiline, so it *should* accept an Enter Key to move
down to the next line.
However, I'm finding that if I put the control onto a form which has a
default Accept button set, then pressing enter when in the multi-line text
box will fire the click event on the default accept button, not create a new
line in the multi-line textbox.
I'm guessing I need to capture the enter key in the control before it gets
passed back up to the form and the default button gets processed.
How do I do this?
I'm writing in vb.net / framework 1.1.
Thanks in advance
Simon Verona
group that I posted my question, and it's probably as valid here as there!
I have a usercontrol, which contains a textbox (as well as other controls).
The textbox is set for multiline, so it *should* accept an Enter Key to move
down to the next line.
However, I'm finding that if I put the control onto a form which has a
default Accept button set, then pressing enter when in the multi-line text
box will fire the click event on the default accept button, not create a new
line in the multi-line textbox.
I'm guessing I need to capture the enter key in the control before it gets
passed back up to the form and the default button gets processed.
How do I do this?
I'm writing in vb.net / framework 1.1.
Thanks in advance
Simon Verona