I am developing one standalone tool in winforms using C#, in which I want the labels to be grows based on the screen resolution.
Kindly help me with the solution.
I am developing one standalone tool in winforms using C#, in which I want the labels to be grows based on the screen resolution.
Kindly help me with the solution.
Below is the solution for this question.
private void Form1_Resize(object sender, EventArgs e)
{
label1.Font = new Font(this.Font.FontFamily, this.Width / 100);//you can set the font size yourself
}