Textbox - Ctrl+Enter=NewLine Enter=Accept
Hi everyone,
is there any example code out there that can help me to the following:
inside a multiline Text Box I want it so that when a user presses Ctrl AND Enter then a new line is entered.
But, if they press Enter on it's own, then it acts like the Accept button on the Form.
i believe this is how Facebook does it.
i thought it was easy, but it's not as easy as i thought ...
thanks in advance
Re: Textbox - Ctrl+Enter=NewLine Enter=Accept
It's easy alright. Set the AcceptsEnter property of the TextBox to False. The fact that you didn't know that indicates that you haven't read the documentation for the TextBox class, which should have been the first thing you did when you wanted to do something with the TextBox class.
Re: Textbox - Ctrl+Enter=NewLine Enter=Accept