GuestUser GuestUser - 11 months ago 82
C# Question

Resize issue in Windows form application in 2560x1600 resolution display

I have a form application working fine on various displays with varying screen resolution but in a machine with 2560x1600 resolution it shrinks to a very small size.

It works fine all smaller resolution and i am not able to find a reason behind it. I have used anchor, docking, autoscalemode and various other properties still it fails only in this above mentioned screen resolution


You can resize the window on startup, for example:

private void Form1_Load(object sender, EventArgs e) {
    Size = new Size(Screen.PrimaryScreen.WorkingArea.Right / 2, Screen.PrimaryScreen.WorkingArea.Bottom / 2);

That's the example only. You have to modify the above code to ensure you are finding the right screen and the right coordinantes.