|
-
Dec 28th, 2000, 04:58 PM
#1
Thread Starter
Hyperactive Member
K, here's my problem.
I have a standard edit menu in my application (Cut, Copy, Paste, etc...) with standard ShortCut keys assigned via the menu editor. When the user presses Ctrl+V to paste text, the application pastes the text twice due to Ctrl+V being a Windows Shortcut and also defined in the menu. This doesn't happen in a normal textbox, but I'm using a Rich Text Box which I can't change. How can I trap and stop one set of "Ctrl+V" so the text is only pasted once? Someone suggested removing the code from behind the menu, but I need the menu to be useable as well...Here is the code I have for the menu item:
Code:
frmMain.ActiveForm.rtbText.SelText = Clipboard.GetText
If you can help me with this, I will be eternally grateful!
TIA!!!
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
|