|
-
Jun 3rd, 2005, 09:47 AM
#1
Re: Disable RichTextBox own paste code... help!
 Originally Posted by Trojan
That is what I ment. that way I can control what format I Paste the text and control other stuff...
Well, the richtextbox, like the standard textbox, has its own right mouse click popup menu which you can replace with your own.
You could also clear the clipboard if they pressed Ctrl-V in your textbox so they couldn't use Windows to do the paste.
-
Jun 3rd, 2005, 09:58 AM
#2
Thread Starter
Hyperactive Member
Re: Disable RichTextBox own paste code... help!
well...
If I make a menu Item with shortcut "Ctrl+V" set it does not bypass the paste code of the windows...
I guess I need to find a solution in API...
-
Jun 3rd, 2005, 10:03 AM
#3
Re: Disable RichTextBox own paste code... help!
 Originally Posted by Trojan
well...
If I make a menu Item with shortcut "Ctrl+V" set it does not bypass the paste code of the windows...
I guess I need to find a solution in API...
You can capture Ctrl_V in the keydown event of your RTB
VB Code:
Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)
If (Shift And vbCtrlMask) = vbCtrlMask And KeyCode = vbKeyV Then
'do something else - clear the clipboard maybe
End If
End Sub
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
|