Home All Groups Group Topic Archive Search About
Author
25 May 2006 3:47 PM
Francillard
I´m trying to find out the way to rezise a continer when mi form it´s
maximised whitout losing the size relation betwen them. if there any body
that can help me about i'l be apreciated. thnks

Author
25 May 2006 5:14 PM
tomb
Francillard wrote:

>I´m trying to find out the way to rezise a continer when mi form it´s
>maximised whitout losing the size relation betwen them. if there any body
>that can help me about i'l be apreciated. thnks

>
You can set the anchor property in design mode to all four sides.  Then
any time the form is resized, so will the container be.

Tom
Author
25 May 2006 5:28 PM
Francillard
Well i did that but now i got a button that it's inside of a container if i
do that  get a
huge button and i can't control that
Show quoteHide quote
"tomb" wrote:

> Francillard wrote:
>
> >I´m trying to find out the way to rezise a continer when mi form it´s
> >maximised whitout losing the size relation betwen them. if there any body
> >that can help me about i'l be apreciated. thnks
> > 
> >
> You can set the anchor property in design mode to all four sides.  Then
> any time the form is resized, so will the container be.
>
> Tom
>
Author
25 May 2006 8:33 PM
Chris Dunaway
Then don't set the anchor for all four sides.  Experiment with that
property.  Normally buttons will be anchored to two sides of the
container.  For example, a button anchored bottom, right will maintain
its position relative to the bottom right of its container.

If you have several buttons/controls that have to be related together,
then simple anchoring may not provide enough control.

If you're using VS2005, you can use a table layout panel in conjunction
with anchoring and the dock property to achive many layouts.  That in
conjunction with the FlowLayoutPanel, anchoring and docking should
support most layout needs.