Installing standard fonts in C #

I apologize if this question is listed elsewhere and I just did not find it in my search. I am trying to find a way to set the DefaultFont property of the form so that users can select the font that they want and it will be automatically set every time the form opens. I already have code to save user settings, I'm just looking for a way to set the default font property. I am using Visual Studio 2005 with C #. Please let me know if there is not enough information. Thanks!

+3
source share
3 answers

Basically this

private void Form1_Load(object sender, EventArgs e)
{
   this.Font = font_from_settings;
}

, . reset *.Designer.cs

+6

, .

, , , .

+2

Control.DefaultFont , . , .

, Control.Font . , InitializeComponent.

+1
source

Source: https://habr.com/ru/post/1710998/


All Articles