.NET Winforms: prevent button click trigger for a multiline textbox on a “AcceptButton” enabled form?
Question
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?
Solution
Set "AcceptsReturn" property of the textbox to true.
OTHER TIPS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow