RichTextBox losing formatting when .Text loaded from Clipboard

  • Thread starter Thread starter BadButBit
  • Start date Start date
B

BadButBit

Guest
I'm trying to use the RichTextBox object's .save() function to write files with formatted text.

when I CTRL-C and CTRL-V (cut and paste) it works fine but if I use the line

rtx.Text = System.Windows.Forms.Clipboard.GetText();


the formatted text in the ClipBoard loses all its formatting when it appears in the RichTextBox rtx.

what up? how do i make this work?

BadButBit



my code is perfect until i don't find a bug

Continue reading...
 
Back
Top