Skip to content

AttachToWindow Method

Description

Specifies the control that will contain the Docking Panes.

Syntax

Public Sub AttachToWindow( _
    ByVal hWnd As Integer _
)

Parameters

  • hWnd: Handle to a control that will be the container for the Docking Panes.

Remarks

Any control with a hWnd or Handle property can be used as a container for the Docking Panes. The Docking Panes will treat the container control exactly like when it is added to a form. The Docking Panes will dock to the edges of the container control and resize when the container is resized.

The picture below shows a RTF TextBox control that contains the Docking Panes.

Docking Panes in RTF TextBox

Example

This sample illustrates how to specify the parent container for a CommandBars control.

DockingPaneManager.AttachToWindow rtfText.hwnd

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.