Windows Form Size Problem!

hi, guys,

I have a small problem, but don't know how to fix it.
I have a windows form, and the size is 916*600, and I want it always keeps it in this size. So I set both MaxSize and MinSize to this value. It is displayed perfectly in 1024*768, but in 800*600, when it comes up, the size is 800*600, not 916*600. Is this because the max screen size is 800 in 800*600 mode

I tried to call this.Size = new Size(912, 600) in FormLoad(), but it does not help. So, how to keep the window to 916*600 even in 800*600 mode

Thanks,



Answer this question

Windows Form Size Problem!

  • Shyam Vaidya

    If you want to keep form size to 916x600 when resolution is 800x600, you can't avoid scroll bars.
  • Beugen

    No, it does not help. It showed up a scroll bar. It is not good either.
  • NickUk

    It only seems to do that to me when I try to maximize the form. Even on the higher resolutions, the behavior just feels unfriendly, with the window jumping around on the screen. Maybe you should just disable the Maximize button on your form (MaximizeBox = false) and set the FormBorderStyle to a fixed style (like FixedSingle) so the user cannot resize it.


  • Lizard Man

    yes, I set the FormBorderStyle to FixedSingle, which makes you can not resize the border. But the form width is still 800, not 912 when it pops up.
  • YU_MSVB

    Set AutoScroll property of your form to True.
  • Windows Form Size Problem!