Ctrl-V pastes twice in RichTextBox
Posted on 1999-06-23
I have a RichTextBox on a form. I have edited the menu for Edit>>Paste to make Ctrl-V a shortcut. The problem is that when I use Ctrl-V, it pastes twice in succession. If I use Alt-E-P, or click, it pastes only once. If I disable the declarations for the Edit>>Paste_Click() sub, Ctrl-V will still paste, but Alt-E-P or click do not. I can eliminate Ctrl-V as a shortcut in the menu editor, and Ctrl-V still works; however, the user will not see Ctrl-V in the menu, or know it's a valid way to paste.
How do I stop the RichTextBox from pasting twice if I set Ctrl-V as a shortcut? I have noticed that WordPad, which also uses the RichTextBox, has Ctrl-V listed in the menu as a shortcut, but there is no problem with double-pasting. I have VB5.0, fixed with SP3, on Win95.