CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Double Paste

  1. #1
    Join Date
    Sep 1999
    Posts
    1

    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.


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    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

  3. #3
    Join Date
    Sep 1999
    Posts
    17

    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.





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured