How to copy text from RichTextBox?

Visual C# OnPaste Event for RichTextBox?

  • I'm making an application where a user might copy and past information from the web. The problem is that since it is a RichTextBox it also copies the style of said copied text. How do I make it to where the font size and color remain the same. My first thought would be to find a OnPaste event and then set the font and color there but I can't find said event. Any help would be appreciated.

  • Answer:

    If you want to ignore the color and font size from the website and use a user defined size, color, and font then change your rich text box to a plain textbox control.

Samuel at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.