RichTextBox - retain original formatting (font), even after paste
问题 I need to use a RichTextBox, not a normal textbox because of the way it keeps the caret position, from line to line. But I need to keep the text in the same font all the time even if it is pasted. At the moment I have it selecting the entire text and changing the font to the original (Lucida Console) but it look horrible when you paste into it as it flashes blue. 回答1: If you are handling the pasting programatically don't use the Paste method. Instead use Clipboard.GetDataObject().GetData