Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Height

Status
Not open for further replies.

jplum

Programmer
May 23, 2002
25
US
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.

Thanks.
 

I am having the same problem. My form will not go past 880. Did you ever figure your problem out?
 
No, I never did figure it out so I just used additional forms.
 
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 ..."

Camel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top