Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I use the FontDialog class to set a control's font?

It is straightforward. Create an instance of the class and call its ShowDialog method.

FontDialog fontDialog1 = new FontDialog(); 
if ( fontDialog1.ShowDialog() != DialogResult.Cancel ) 
  textBox1.Font = fontDialog1.Font ; 

Contributed from George Shepherd's Windows Forms FAQ



Page view counter