winforms - C# || How to call methodes of FontDialog without opening the dialog itself? -


i have these buttons on windows form:

enter image description here

i code each button functionality.(bold, italic, font style, font size).

but wondering if call methodes of fontdialog , put them in own buttons.

to more clear: when click bold button, dont want

richtextbox.selectionfont = new font(richtextbox.font,fontstyle.bold); 

instead call methods

fontdialog fd = new fontdialog();  fd.somemethode....  


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -