This sounds pretty basic, but I cannot figure it out. I am trying to make my form longer than one screen. I have AutoScroll set to True, but the height will not go beyond 612.
Hello there,
It never occurred to me to create a form larger than the screen but after a bit of research I think I know why you can not.
The Size object (responsible for the size of any drawn item) is "restricted" by the size of the display.
If you see the class "System.Windows.Forms.Screen" you will notice that there is a property WorkingArea. This property (read-only) returns the size of the screen (or screens) as a rectangle.
The Bounds of the form is then set to that rectangle. This is the reason that you can not create a form larger than the screen.
If you need to create a larger form then another approach could be (never tried) to create a control (containing all that your actual form could contain) and embed it into your main form.
The control can be as big as you like and the scroll bars should be in place to let you move up and down.
I hope that this helps
"The Camel will walk the desert of programming once again ..."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.