Click to See Complete Forum and Search --> : Double Paste


benpro
September 23rd, 1999, 09:36 AM
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.

Ravi Kiran
September 25th, 1999, 01:24 AM
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

shanep
September 27th, 1999, 02:35 AM
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.