Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomDockControl.ParentForm Property

Returns the form that owns the dock control.

#Declaration

Delphi
property ParentForm: TCustomForm read;

#Property Value

Type
TCustomForm

#Remarks

When a dock control is created, it is associated with a form. When creating a control at design-time, it is associated with the form in which it has been placed. If creating a control via code, the associated form is specified by the constructor parameter. After this has been done, the dock control becomes the associated form’s property.

The ParentForm property is used to obtain the form to which the dock control belongs. Do not confuse the return value of this property with the float form where the control can reside. To obtain the owning float form, use the FloatForm property.

Note that dock controls having different ParentForm property values cannot be docked to each other.

See Also