Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Designing a Windows Form Where Size Exceeds Your Screen’s Resolution

0.00/5 (No votes)
20 Oct 2011 1  
Design forms beyond the size of our development machine's screen resolution

Sometimes, we need to design forms in our  applications beyond the size of our development machine's screen resolution. But the problem is, our development environment does not allow us to resize our forms beyond our screen resolution (screen resolution – borders to be exact).

One method is to do the development on the client resolution. But it’s not going to work all the time, if we have to do the development and send it across to a different physical location.

The other method is to insert a ‘Panel’ to the form and change its size to the one at the client's end. The one I am working at has the resolution of ‘1440 X 900’. But I want to make a form which fits for ‘1920 X 1200’. I change the Panel’s size to a bit less than ‘1920 X 1200’ because I have to leave space for the borders and the scroll bars. I would make it somewhere around ‘1870 X 1150’.

And change the following form properties also:

  • AutoScaleMode = None
  • AutoScroll = True
  • AutoSize = True
  • WindowState = Maximized

And you will note that there are two scroll bars available at design time with which you can scroll and place controls beyond your screen's resolution. And when run on the client environment, the form will maximize and since the panel is a bit smaller than the actual screen size, the scroll bars will not be visible.

271581/screen_01_thumb2.png

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here