Anchor Property

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
 
O

One Handed Man [ OHM ]

I'm not quite sure what your talking about, can you be more specific.
 
J

Jay B. Harlow [MVP - Outlook]

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
 
H

Herfried K. Wagner [MVP]

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...
 

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

Top