I apologize if this question is listed elsewhere and I just didn't find it in my search. I am trying to find a way to set the DefaultFont property of a form so that users can select the font they want and it will be auto set every time the form opens. I already have the code to save to the user settings, I'm just looking for a way to set the Default Font property. I'm using Visual Studio 2005 with C#. Please let me know if there isn't enough info in here. Thanks!
Basically, it is
private void Form1_Load(object sender, EventArgs e)
{
this.Font = font_from_settings;
}
But it will be a little tricky to make sure no control is overriding it's own font property. You can use the designer to reset font-properties or delete them from *.Designer.cs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With