Hajitsu
Hajitsu

Reputation: 784

Color of text changed when font changed in RichTextBox

I use RichTextBox in my windows application program. The rtf of RichTextBox has text with any color. I use Combobox for user can change font of RichTextBox. My problem is when user change font, all text of RichTextBox has black. How can i privent to change color of text ? Thanks

Upvotes: 0

Views: 544

Answers (1)

codeteq
codeteq

Reputation: 1532

use the .SelectionFont-Property of the RichTextBox

more infos: http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.selectionfont.aspx

Upvotes: 1

Related Questions