Change the FontStyle of SelectionFont!
Hi,everyone!I began learning Csharp last month.
As a new learner, I am trying to complete a small Notepad.I run into a problem when I am trying to chang the FontStyle of SelectionFont.It will throw a exception called "NullReferenceException" whenever some words whith different FontFamliy are selected.Some documents tells me why it happened.My question is : how can I change the FontStyle of SelectionText with different FontFamliy?
Thank you very much for your help.And forgive me for my pool English.
|