Home » FAQ » WinForms » Fonts » How do I set the font for a control
Use the Font property for the control along with the Font class in the System.Drawing class.
button1.Font = new Font ('Courier', 10, FontStyle.Bold);
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with