problem of RichTextBox

  • Thread starter Thread starter Franz
  • Start date Start date
F

Franz

I have a RichTextBox which uses font A. But when I input text into it, the
font of the new words is not font A.
I haven't set the SelectionFont property.
But if I execute the following line of code, the font of the new words
changes to font A
aRichTextBox.Text = aRichTextBox.Text;

Does anyone have idea on solving my problem?
 
Hi,

Try
aRichTextBox.Rtf = aRichTextBox.Rtf;

because it sets or gets the text "with" the format codes.
 
Back
Top