How to: Dock Forms
You can dock user-defined forms to certain Visual FoxPro IDE windows or other forms.
To dock a form
Open the form in the Form Designer.
In the Properties window, set the form's Dockable property to 1.
Save and run the form.
Drag the form to the dock area of the target window or form.
An outline of the form appears and changes shape when the form is moved over an eligible docking area.
For more information, see Form Designer and Dockable Property.
To dock a form programmatically
In code, set the form's Dockable property to 1.
Set the form's Visible property to .T. (True).
Call the form's Dock method with the appropriate values.
For more information, see Visible Property (Visual FoxPro) and Dock Method.
To undock a form
Choose one of the following:
- Drag the form from the window or form it is docked to.
-OR-
- Call the form's Dock method with the appropriate values.
-OR-
- Set the form's Dockable property to 2 or 0.
See Also
Tasks
How to: Set Properties at Run Time