Home All Groups Group Topic Archive Search About
Author
11 Aug 2006 11:03 PM
TyBreaker
Is it possible to set controls to dock/anchor to nearby controls rather
than to the edges of the form?  Trying to have the form controls
auto-adjust if a particular controls resizes.
--
  ______     ___               __
/_  __/_ __/ _ )_______ ___ _/ /_____ ____
  / / / // / _  / __/ -_) _ `/  '_/ -_) __/
/_/  \_, /____/_/  \__/\_,_/_/\_\\__/_/
     /___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.

Author
12 Aug 2006 4:46 AM
Cor Ligthert [MVP]
TyBreaker,

Did you already had a look at the Anchor properties?

Cor

Show quoteHide quote
"TyBreaker" <tybreakerNO@SPAMhotmail.com> schreef in bericht
news:%23rc1YpZvGHA.356@TK2MSFTNGP04.phx.gbl...
> Is it possible to set controls to dock/anchor to nearby controls rather
> than to the edges of the form?  Trying to have the form controls
> auto-adjust if a particular controls resizes.
> --
>  ______     ___               __
> /_  __/_ __/ _ )_______ ___ _/ /_____ ____
>  / / / // / _  / __/ -_) _ `/  '_/ -_) __/
> /_/  \_, /____/_/  \__/\_,_/_/\_\\__/_/
>     /___/
>
> There are 10 types of people in this world; those who understand the
> binary numbering system and those who don't.
>
> There's no place like 127.0.0.1.
>
> ASCII a silly question, get a silly ANSI.
Author
12 Aug 2006 6:20 AM
TyBreaker
Cor Ligthert [MVP] wrote:
> TyBreaker,
>
> Did you already had a look at the Anchor properties?

Am I right in thinking the Anchor property only anchors controls to the
edges of the form rather than to each other?

--
  ______     ___               __
/_  __/_ __/ _ )_______ ___ _/ /_____ ____
  / / / // / _  / __/ -_) _ `/  '_/ -_) __/
/_/  \_, /____/_/  \__/\_,_/_/\_\\__/_/
     /___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.
Author
12 Aug 2006 7:54 AM
gene kelley
On Sat, 12 Aug 2006 16:20:42 +1000, TyBreaker <tybreakerNO@SPAMhotmail.com> wrote:

>Cor Ligthert [MVP] wrote:
>> TyBreaker,
>>
>> Did you already had a look at the Anchor properties?
>
>Am I right in thinking the Anchor property only anchors controls to the
>edges of the form rather than to each other?

Refers to edges of a container which could be a form, panel or other container.

If you are talking about only a couple of controls, I would probably just use the layout event to
"describe" the location relationship of one control to another (the layout event fires when a
control is resized).

If you are talking about many controls and using VB2005, you might look at the TableLayoutPanel
which has a number of properties and possible combinations. (Here, a control's anchor refers to a
cell edge).

Gene