Skip to content

SetCommandBars Method

Description

Sets a CommandBars object to associate with this Docking Pane object.

Syntax

Public Sub SetCommandBars( _
    ByVal CommandBars As Object _
)

Parameters

  • CommandBars: The command bars object.

Remarks

If you use both DockingPanes and CommandBars in the same form, associate the command bars with the docking pane manager using this property. This is necessary for correct resizing and layout of controls on the form.

NOTE: It might be necessary to change the ZOrder of the DockingPaneManager control. Simply right-click the control at design-time and select "send-to-back." The CommandBars must be "in-front" of the DockingPane control.

Example

DockingPaneManager.SetCommandBars Me.CommandBars

See Also


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