469,649 Members | 1,420 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

Properly maximizing this form?

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

Apr 17 '06 #1
1 2269
VJ
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

"Brett Romero" <ac*****@cygen.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
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

Apr 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by michael montagne | last post: by
reply views Thread by pnp | last post: by
7 posts views Thread by Elmo Watson | last post: by
1 post views Thread by mac | last post: by
2 posts views Thread by solar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.