Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
The height of one of my forms is high so that users with laptops do not see the controls at the bottom of the form.
But the users with bigger screens are fine and can see the full height of the form.
The form is resizable but that does not make a difference. Still they do not see the controls at the bottom of the form.
What is the solutioin for the users with small laptops please?
Thanks
Posted

There are a number of things you can do: The simplest is to enable a scroll bar on the form, via the AutoScroll property.

The next is to look at the Anchor property. This allows you to set which side(s) of the form control the location (and size if you use matching pairs, e.g. Top and Bottom) of a control.

Then there is a more complex method using panels to contain controls as groups, and resize and relocate the panels as required.
 
Share this answer
 
Not only make your form 'resizable' but also apply the following:

1, FlowLayoutPanel will position your child controls from left to right and automatically move to a new row when you run out of space. This is great for a fluid design as it will adjust the layout depending on the available space.
http://msdn.microsoft.com/en-us/library/f9e8s203.aspx[^]

2, Control.Anchor property allows a child control to alter position and size based on the size of the form client area. So you make your control always be a fixed offset from the right or bottom edges.

3, Control.Dock property will position a child control against an edge and the opposite size will automatically be defined by the containing form.

http://msdn.microsoft.com/en-us/library/ms171633.aspx[^]


This way you provide a more fluid layout where the layout changes based on the available space.
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900