Resizing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Francillard said:
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
 
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
 
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.
 
Back
Top