Copy/Cut/Paste selected text from RichTextBox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Cotton

    #1

    Copy/Cut/Paste selected text from RichTextBox

    How can I copy/cut/paste selected test from a richtextbox?

    I can't find the answer on MSDN or anywhere I have searched.
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    http://msdn.microsoft.com/en-us/libr...chtextbox.aspx

    You might have missed it... there's the MSDN page for a RichTextBox. Check the methods section, there you should find a Copy, Cut, and Paste method. I ran a quick test and they do seem to put it to the clipboard, so you can call copy or cut on a richtextbox, then call paste on another richtextbox and it works, or you can manually press ctrl+v for a similar effect.

    Comment

    Working...