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 MDI client window.

Remarks

This method is only used in .NET. It is required when using the DockingPane control in an MDI Application where the form that contains the DockingPane control has the IsMDIContainer property set to True.

Example

SetMDIClient Sample (C#)

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

foreach (Control ctrl in this.Controls)  
{  
    if (ctrl is MdiClient)  
    {  
        DockingPaneManager.SetMDIClient(ctrl.Handle.ToInt32());  
    }  
}

See Also


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