Hi
in my program i need to select some special fonts like blogs that you can just select special fonts for your posts.
I can use fontdialog but i want to select 5 or 6 special fonts by a menu and Apply to my richtextbox.
thanks
Fonts in c#
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 4, 2011, 6:11 AM EDT
richTextBox1.SelectionFont = new Font("Tahoma", 12, FontStyle.Bold);
Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 3, 2011, 6:05 AM EDT
Abolfazl155 reputationPosted Nov 4, 2011, 12:48 AM EDT
no,i didn't use the font class.how can i use it?
i used this code for change fontsize: richtextbax1.selectionfont=new font(richtextbox1.font.fontfamily,number);
but iwant to change the font like arial,tahoma or etc. can you help me?
Mahesh ChandRank #1 · 393.3K reputationPosted Nov 4, 2011, 6:42 AM EDT
You don't need to use a big/bold font in the forums.
Abolfazl155 reputationPosted Nov 6, 2011, 2:36 AM EST
thanks for your guide
ok,i'm sorry for use big\bold font