-
Double Paste
The code that I have written to cut and paste on a richtextbox control works fine when the menu item is selected, but when I use the shortcut key ctrl+v the text is pasted twice. I don't know what is causing this or have any idea how to disable the double paste.
-
Re: Double Paste
may be the way in which you have implemented could be causing a recursive call - something like one change invoking another change etc.
If you are handling _Change event of RichTextbox, check in there, something could be triggering another event.
RK
-
Re: Double Paste
One paste may be coming from the richtextbox which intrinsically supports the clipboard, and the second paste may be from your menu handler.
Put a break point on the menu handler, and test if ctrl+v is hitting your special paste code.