using the Dock property for controls....???

  • Thread starter Thread starter Paul M
  • Start date Start date
P

Paul M

hi there,

this might be an easy question but i cant seem to figure it out.

I have a form, with 3 controls and i want to dock them all on the top of the
form, which is all and good, but i want them to be in a specific order.
How can this be done?

thanks,
paul
 
* "Paul M said:
I have a form, with 3 controls and i want to dock them all on the top of the
form, which is all and good, but i want them to be in a specific order.
How can this be done?

Select the controls and choose "Send to Back" or "Bring to Front" from
their context menus.
 
Hi Paul,

The will be ordered in the same way you place them in the designer. That is
the first placed is going to be on the top.

If you add them at run-time is the other way around. The controls layouts
children backwards. In other words the last in the Controls collection will
be layouted first. Thus, the last added will be on the top.
 
Thanks heaps!

this solved the problem, although logically thinking of it, u would think
that the order of docking would be in the order you dock the controls.

thanks again:))
Paul.
 
Back
Top