1

I am working on Windows form application. After deploying the application I am getting screens with different sizes in laptop and desktop. This makes some of my menus to disappear and reports to be not shown properly. Do we have a solution for this?

While changing the resolution of my system my form size also getting changing. I want to prevent this.

Hoh
  • 1,196
  • 1
  • 12
  • 30
user3106114
  • 183
  • 2
  • 11
  • 31

3 Answers3

1

Make your app with lowest possible resolution (Like: 800x600) and then
Use Panels and when you add your tools into those panels dock them, that might be helpfull, that's what I am using in all my applications and it is going with screen resolution all the time.

Hoh
  • 1,196
  • 1
  • 12
  • 30
1

I put this section of code in my Load event method:

this.MaximumSize = this.MinimumSize = this.Size;

When a user attempts to double click on the top of the form to maximise it, it stays in the same size. Therefore, maximising the form in this case is disabled.

lornasw93
  • 182
  • 4
  • 26
1

Make it small enough to fit in the screen having the smallest resolution. And make your forms WindowState as normal. Then you'll see that it fits all the screens. But if you want Maximized state on all screens then you should first apply my first sentence, with @Nidzaaaa's answer.

Tolga Evcimen
  • 7,112
  • 11
  • 58
  • 91