You can dock user-defined forms to certain Visual FoxPro IDE windows or other forms.

To dock a form

  1. Open the form in the Form Designer.

  2. In the Properties window, set the form's Dockable property to 1.

  3. Save and run the form.

  4. 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

  1. In code, set the form's Dockable property to 1.

  2. Set the form's Visible property to .T. (True).

  3. 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