Form Layout

T

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

TyBreaker

Cor said:
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.
 
G

gene kelley

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
 

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

Similar Threads

VB2005: Controls not appearing on form 3
Floating Menu Bar 6
System Icons? 2
Prompting for an IP address 4
Dynamic buttons 2
Appbar and Tooltips 1
MouseMove event not firing 3
VB.NET Appbar example? 1

Top