Making a Windowed Control a Docking Site
Go Up to Implementing Drag and Dock in Controls
To make a windowed control a docking site
- Set the DockSite property to True.
- If the dock site object should not appear except when it contains a docked client, set its AutoSize property to True. When AutoSize is True, the dock site is sized to 0 until it accepts a child control for docking. Then it resizes to fit around the child control.
- Set the DockSite property to true.
- If the dock site object should not appear except when it contains a docked client, set its AutoSize property to true. When AutoSize is true, the dock site is sized to 0 until it accepts a child control for docking. Then it resizes to fit around the child control.