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 CommandBars in an MDI Application where the form that contains the CommandBars has the IsMDIContainer property set to True.
Example
SetMDIClient Sample (Visual Basic)
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.