Properly maximizing this form?

  • Thread starter Thread starter Brett Romero
  • Start date Start date
B

Brett Romero

Let's say I have a panel docked top and a datagrid docked middle. In
the panel are three columns and three rows of combo boxes and one
search button. Search results are displayed in the grid. Everything
looks fine and works nicely.

There are more columns in the grid than can be displayed on the form.
Since the datagrid is set to fill, it will stretched when the form is
widened or maximized, giving the user a better view of all columns.
The top panel also stretches but the three columns of combo boxes stay
on the left side. It would look better if they distributed themselves
evenly across all of the empty in the panel created by maximizing the
form.

Is there an easy way to do this? Or what are some generally good
design tips for this type of setup?

Thanks,
Brett
 
You can anchor controls with respect a parent container.. Look at the anchor
property..., That should help you achieve what you want. Please do read
about it a little before you implement in MSDN. The anchor property when
used might alter the size of the individual controls, if you want the size
to remain the same, then you will have to do the position of controls and
spacing yourself..

VJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top