I have one RichTextBox with formatted text. I have drag and drop enabled so that I can drag the selected text if the right mouse button is down. The problem is that the formatting is not copied or moved with the text to an external application such as MS Word XP or WordPad. In particular, I want the text with the particular font that the RTF box is set for. All that happens now is that plain text is moved or copied. I don't want to have to reset the font manually after I transfer the text. I have Windows XP and MS Word XP. How can I have the formatted text dropped. If I changed Selected text to RTF, that simply copies the formatting codes. I'm not a programmer. Is there an easy way to modify the following code?
VB.NET:
If e.Button = MouseButtons.Right Then
RichTextBox1.DoDragDrop(RichTextBox1.SelectedText, DragDropEffects.Copy)
End If