Well my problem is this: I set the AcceptButton on a form and this gives me the nice effect that it triggers the buttons Click event, but if I'm on a MultiLine textbox I don't want this to happen. Then I just want it to put a enter in it.
Is there any way to do this?
Set "AcceptsReturn" property of the textbox to true.
There is a property on the TextBox
control:
textbox1.AcceptsReturn = true;
MSDN documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With