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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -