This document is archived and information here might be outdated.  Recommended version.


IModelessFrame.Create Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IM > IModelessFrame Interface > IModelessFrame.Create Method
ArcGIS Developer Help

IModelessFrame.Create Method

Creates the modeless frame around the specified VisualBasic form object.

[Visual Basic .NET]
Public Sub Create ( _
    ByVal vbForm As Object _
)
[C#]
public void Create (
    object vbForm
);

Product Availability

Available with ArcGIS Desktop.

Description

The ModelessFrame object controls the life cycle of the Visual Basic form. You should pass an instance of the VBForm and not the Form itself. For example, you should use the following style when you create the ModelessFrame object;

  Dim pForm As Form1
  Set pForm = New Form1
  Dim pFrame As IModelessFrame
  Set pFrame = New ModelessFrame
  pFrame.Create pForm

See Also

IModelessFrame Interface