|
-
Feb 22nd, 2000, 02:54 AM
#1
Thread Starter
New Member
I was wondering if there was a way to diable the enter button while a rich text box was in focus.
-
Feb 22nd, 2000, 04:17 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|