@Ron Sipherd, Welcome to Microsoft Q&A, you could refer to the following link to set Automatic scaling in a windows form.
You could look at the following Microsoft Learning to use the desktop font.
How to: Respond to Font Scheme Changes in a Windows Forms Application
Update:
If you want to achieve the function Automatic scaling in Windows Forms, I recommend that you use the following code in constructor:
public Form1()
{
InitializeComponent();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Font = SystemFonts.DefaultFont;
this.AutoScaleDimensions = new SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
}
If you want to adjust the size and scale of Windows Forms, I recommend that you used Control.Scale Method. Here is a code example you could refer to.
[Obsolete]
private void Form1_Load(object sender, EventArgs e)
{
TableLayoutPanel panel = new TableLayoutPanel();
panel.Dock = DockStyle.Fill;
panel.RowCount = 2;
panel.ColumnCount = 2;
panel.Controls.Add(new Label() { Text = "Name:" }, 0, 0);
panel.Controls.Add(new TextBox(), 1, 0);
panel.Controls.Add(new Label() { Text = "Age:" }, 0, 1);
panel.Controls.Add(new TextBox(), 1, 1);
panel.Scale(2f);
this.Controls.Add(panel);
}
Example:
As the above result shown, all the controls are scaled by a factor of 2.
Best Regards,
Jack
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.