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


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

IModelessFrame Interface

Provides access to a means of displaying modeless dialogs implemented with VisualBasic.

Product Availability

Available with ArcGIS Desktop.

When To Use

The ModelessFrame object provides Visual Basic developers with a way to implement modeless windows in ArcGIS without requiring VBA to initialize. It is essentially a wrapper around ordinary VB forms. The ModelessFrame object requires minimal changes to existing VB code to take advantage of it. It will also manage the Z order of modeless forms so that they behave correctly with respect to application focus and ensures that the window minimizes and restores appropriately with the ArcGIS application.

You should only need to use IModelessFrame when you are developing with Visual Basic. Modeless forms implemented in other development environments�including C++, C#, and VB.NET�will work as expected in ArcGIS without needing to implement this interface.

Members

Name Description
Read/write property Caption The caption of the modeless frame.
Method Create Creates the modeless frame around the specified VisualBasic form object.
Read/write property Visible Indicates if the modeless frame is visible.

Classes that implement IModelessFrame

Classes Description
ModelessFrame Object that implements a ModelessFrame.

Remarks

When hosting VB forms within any application not written in Visual Basic itself, the Tab index of forms may not be honored correctly. To address this problem, the controls within a form should be created in their Tab index order. Use the 'ESRI Align Controls with Tab Index' VBAddin.

Tabbing will not work for controls that are nested within a container, for example controls that are nested within a frame of a tab strip control. Move these controls out of the containers and place them back onto the VB form to resolve.

[C#]

IModelessFrame is not applicable in .Net. Use Form.Show() to bring up a modeless dialog instead.

[Visual Basic .NET]

IModelessFrame is not applicable in .Net. Use Form.Show() to bring up a modeless dialog instead.