In this post we will see the usage of font-dialog and changing the font style of textbox in our c#.net or vb.net windows application.
for this i am designing the form as shown in the image below.
Font Dialog Winforms
In this example we are using a font dialog box and showing the font dialog on the button click and  based on the font dialog result, we are changing the font style of a multi line textbox .
 
The c# code in the code behind file is given below :

 

The VB code in the code behind file is given below :

 

Font Dialog Winforms
Font Dialog Winforms