Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Hi All!
I'd like to help my users by changing the way the return key down condition works in certain textboxes in which they write like in MS Word.
The goal is simply to press return, rather than control+return to input a line feed.
Now I've tried putting this into the keydown event for my textbox:
This does the first part and puts a line feed in. Now I need to stop the rest of the return's action and make it stay in the textbox, with the curser on the new line.
How can I achieve this?
I'd like to help my users by changing the way the return key down condition works in certain textboxes in which they write like in MS Word.
The goal is simply to press return, rather than control+return to input a line feed.
Now I've tried putting this into the keydown event for my textbox:
Code:
If KeyCode = vbKeyReturn Then
TextBox77.Value = TextBox77.Value & Chr(10)
End If
This does the first part and puts a line feed in. Now I need to stop the rest of the return's action and make it stay in the textbox, with the curser on the new line.
How can I achieve this?