Click here to Skip to main content
Click here to Skip to main content

Designing a Windows Form where size exceeds your screen’s resolution

By , 20 Oct 2011
 

Some times 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.

screen_01_thumb2.png

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Manjuke Fernando
Technical Lead Air Liquide Industrial Services (Singapore)
Sri Lanka Sri Lanka
Member
I have been in software industry for more than 8 years. I have developed different type of software using different languages. Many of them are database related (both web & window based), SQL being as the back end most of the time. Up-to-date I have knowledge in languages such as C#, VB.Net, T-SQL, JAVA, VB6 & C++, making C# the most proficient of all. Also I have worked using different technologies like ASP.Net, SharePoint, Crystal Reports (But I really hate designing reports) & MS SQL Server and have involved in designing & developing software for major companies like FedEx, Softlogic Holdings, IronOne Technologies & Brandix. Currently I am working as a Tech Lead in Singapore.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralMy vote of 5membermanoj kumar choubey28 Nov '12 - 18:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 20 Oct 2011
Article Copyright 2011 by Manjuke Fernando
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid