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

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -