This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IM > IModelessFrame Interface > IModelessFrame.Create Method (ArcObjects .NET 10.4 SDK) |
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 );
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