I was wondering if there was a way to diable the enter button while a rich text box was in focus.
Printable View
I was wondering if there was a way to diable the enter button while a rich text box was in focus.
Sure. In RichTextBox's KeyPress event put this:
------------------Code:Private Sub RichTextBox1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
End If
End Sub
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819