winform does not maximize windows 10 code example
Example 1: winform not maximizing
private void Form1_Load(object sender, EventArgs e)
{
this.Top = 0;
this.Left = 0;
this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height - 10);
}
Example 2: winform not maximizing
this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;