Anchor/dock property

J

James

I have a form which has a number of labels and a Rich text box
control.
They are layed out in this manner.

First I have a menu at the top and then a tool bar.
The tool bar is docked to the top.

Then I have a pane which is filled through the entire form.

inside the pane I have a group box which contain a number of labels.
the group box is typed Dock.top and the labels are anchored
top,bottom,left,right.

Then I have another group box under the previous one. And as before I
have some labels. I have Docked this group box as fill and the labels
inside as anchored top,bottom,left,right.

Then I have the rich text box control below the first two group boxes
which is docked as bottom.

Is this the correct waydo do this. Any new ideas.

Thanks
 
S

Stoitcho Goutsev \(100\) [C# MVP]

Hi James
I don't see anything wrong with your layouting. If it works for you then it
is ok.
Don't forget that you have to put fill docked controls last and if you
anchor the labels in this way you should make sure labels' auto sizing is
turned off otherwise anchoring won't work.
Anyways I think anchoring Top, Left for labels is more natural. However it
depends on your needs.
 

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