i frequently have troubles with the dock property.

it seems that either the order of creation or adding to the parent control determines whether or not a control's dock property supersedes another's. e.g. a control with the dockstyle fill will overlap with another docked control on the same parent.

does anyone know what the rules are to determine how docking will behave; particularly in dynamically created GUIs?

thanks!