Anchor Property

  • Thread starter Thread starter CJ Taylor
  • Start date Start date
C

CJ Taylor

Hey, how do I use the anchor property?

I have it set to Top, Left, but when I expand the form, it doesn't grow with
it... What am I missing?

Thanks,
CJ
 
CJ,
The anchor property will keep the control anchored to that side.

Hence setting Anchor to Top & Left will keep the controll fixed to the Top &
Left side. It will not grow as you need to anchor the control to opposite
sides to make it grow.

If you set Anchor to Top, Left & Right, the control will grow as the form
gets wider, but not grow any higher.

Setting Anchor to Top, Left, Right, and Bottom, the control will grow in
both width & height.

The Dock property set to Fill, will effectively causes the control to be
anchored to the edges with no space between the control & the edge.

Hope this helps
Jay
 
Hello,

CJ Taylor said:
Hey, how do I use the anchor property?

I have it set to Top, Left, but when I expand the form,
it doesn't grow with it... What am I missing?

You may want to set it to 'Right' and 'Bottom' too...
 
Back
Top