Do you make "Enter" go to the next line when you have a multi-line textbox rather than hit the OK button?

Last updated by Igor Goldobin 2 months ago.See history

If you have a multi-line textbox in a form, you should make the "Enter" key go to the next line in the text box, rather than cause it to hit the OK button.

Figure: Bad example - "Enter" button causes OK button to be pressed instead of going to next line in the multi-line text box

Figure: Good example - "Enter" button goes to the next line in the text box

It can be done by assigning "True" value to AcceptsReturn and Multiline options in properties bar.

Figure: Developer Notes properties details

We open source. Powered by GitHub