Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Increase Window Form Height?
 

Increase Window Form Height?

Hello everyone,

Easy question here, I think.

I have a window form that max out at height of780. I can increase the length(width) without a problem. When the page load, it's not set to be max. Even ifI increase the control inside this window, the form is maxed at 780 and the rest of the control in it is cut-off. I need the form to be maximize when it load since I need all the area as much as I can get. How can I set it so that when it load, it load as a maximized window form? And how do I increase the height so that I can see/use the control with max height?

BlueMarker
BlueMarker  Monday, March 16, 2009 3:28 PM
Hi,

Do you mean you want to maximize theform when this load?

Set WindowState property of the form to "Maximized" or add the following in the load event:

.WindowState = FormWindowState.Maximized;

Set the height to the maximum height:

.Height = this.MaximumSize.Height;

If I misunderstood you, or you have other questions, please feel free to tell me.

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Marked As Answer byBlueMarker Tuesday, March 17, 2009 8:31 PM
  •  
Ling Wang  Tuesday, March 17, 2009 1:50 PM
Hi,

Do you mean you want to maximize theform when this load?

Set WindowState property of the form to "Maximized" or add the following in the load event:

.WindowState = FormWindowState.Maximized;

Set the height to the maximum height:

.Height = this.MaximumSize.Height;

If I misunderstood you, or you have other questions, please feel free to tell me.

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Marked As Answer byBlueMarker Tuesday, March 17, 2009 8:31 PM
  •  
Ling Wang  Tuesday, March 17, 2009 1:50 PM
Hi Wang,

Thanks for responding,

Maximizing helps but I still can't increase the height of the form in design. Maybe its suppose to be that way.
I can increase the splitcontainer within this form below the form's height though.

BlueMarker
BlueMarker  Tuesday, March 17, 2009 8:30 PM
Do you mean increase the height in designer?

Set the size, or drag the edge of the form to the maximum size.


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Wednesday, March 18, 2009 3:20 AM

You can use google to search for other answers

Custom Search

More Threads

• looking for some direction - visual studio 05 and mysql
• Image compression in compact framework
• How to use EnableDesignMode in VS 2005 ??
• Error with windows forms with C#
• PropertyGrid not showing
• Copy DataSet Component DesignTime Behavior?
• How to copy the panel including controls and paste in the same form?
• Design Issue with TypeConverter for a Collection Item.
• IWindowsFormsEditorService designing a checkbox group and radio buttons
• Custom ExpandableObjectConverter to show the contents of the selected Control