Skip to content

SetMDIClient Method

Description

Used in .NET to set the handle to the MDI client window.

Syntax

Public Sub SetMDIClient( _
    ByVal hWnd As Integer _
)

Parameters

  • hWnd: Handle to the MDI client window.

Remarks

This method is only used in .NET and is required when using the CommandBars in an MDI application where the form that contains the CommandBars has the IsMDIContainer property set to True.

Example

This sample illustrates how to set the handle to the MDI client window in .NET.

Dim ctrl As Control  

For Each ctrl In Controls  
    If (ctrl.GetType Is GetType(System.Windows.Forms.MdiClient)) Then  
        CommandBars.SetMDIClient(ctrl.Handle.ToInt32)  
    End If  
Next

See Also


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