Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Max Size of a Form
 

Max Size of a Form

Hello friends,
i am using VS.Net 2003. I need a Auto scrolling in a form, so that i have change the AutoScroll property to True. But i can't change the size of the form larger than the available screen. Please help me. Thanks in advance.
Yuvaraj
Yuvaraj_Amar  Monday, January 23, 2006 10:58 AM

How AutoScroll works is that the size of the "virtual form" (i.e. the one that you are going to scroll around) is determined by the controls in the form and the AutoScrollMinSize, whichever is the larger.

Look at the control furthest down in your form, and the control furthest right. If they can fit inside the form without any scrolling, then AutoScroll will do nothing. If you move one out so that it's so far right (or down) that it doesn't appear in the form, then an AutoScroll of true will show scrollbars allowing you to scroll the control into view.

AutoScrollMinSize allows you to control this process further by telling it to use the size you specify for the "virtual form".

Sean Hederman  Monday, January 23, 2006 1:51 PM
Have you added controls, or set the AutoScrollMinSize property?
Sean Hederman  Monday, January 23, 2006 1:29 PM
I have added controls, but not set AutoScrollMinSize.
Yuvaraj_Amar  Monday, January 23, 2006 1:39 PM

How AutoScroll works is that the size of the "virtual form" (i.e. the one that you are going to scroll around) is determined by the controls in the form and the AutoScrollMinSize, whichever is the larger.

Look at the control furthest down in your form, and the control furthest right. If they can fit inside the form without any scrolling, then AutoScroll will do nothing. If you move one out so that it's so far right (or down) that it doesn't appear in the form, then an AutoScroll of true will show scrollbars allowing you to scroll the control into view.

AutoScrollMinSize allows you to control this process further by telling it to use the size you specify for the "virtual form".

Sean Hederman  Monday, January 23, 2006 1:51 PM

After setting AutoScrollMinSize height and width to 1, that problem got solved. Thank You.

Yuvaraj

Yuvaraj_Amar  Monday, January 23, 2006 2:04 PM

You can use google to search for other answers

Custom Search

More Threads

• xp style or VS controls
• UserControl as Container
• How to show directory structure on Windows Form in VB.Net 2005?
• Design view of one windows form lost all of the components that were on the screen.
• unique property
• Lost Resource File Data
• Edit static properties of a custom UserControl in designer?!..
• ReOrdering the column in datagridview
• Designer auto assigning bogus string resource values
• Sort Icon in Grid View(Win Forms)