Use the ShowDialog to open an GxDialog.
[C#]
///<summary>Use the ShowDialog to open an GxDialog.</summary> /// ///<param name="application">An IApplication interface.</param> ///<param name="esriGxDlgID">An esriGxDlgIDs enumeration that is the type of dialog to open. Example: ESRI.ArcGIS.ArcCatalogUI.esriGxDlgIDs.esriGxDlgCustomize</param> /// ///<remarks>Refer to the EDN document http://edndoc.esri.com/arcobjects/9.1/default.asp?URL=/arcobjects/9.1/ComponentHelp/esriArcCatalogUI/esriGxDlgIDs.htm for a listing of available esriGxDlgIDs that can be used as the esriGxDlgID parameter.</remarks> public void OpenGxDialog(ESRI.ArcGIS.Framework.IApplication application, ESRI.ArcGIS.ArcCatalogUI.esriGxDlgIDs esriGxDlgID) { if(application == null) { return; } System.Int32 dialogID = (System.Int32)esriGxDlgID; // example: ESRI.ArcGIS.ArcCatalogUI.esriGxDlgIDs.esriGxDlgCustomize if (!application.IsDialogVisible(dialogID)) { System.Object optionalParam = System.Type.Missing; application.ShowDialog(dialogID, ref optionalParam); } }
[Visual Basic .NET]
'''<summary>Use the ShowDialog to open an GxDialog.</summary> ''' '''<param name="application">An IApplication interface.</param> '''<param name="esriGxDlgID">An esriGxDlgIDs enumeration that is the type of dialog to open. Example: ESRI.ArcGIS.ArcCatalogUI.esriGxDlgIDs.esriGxDlgCustomize</param> ''' '''<remarks>Refer to the EDN document http://edndoc.esri.com/arcobjects/9.1/default.asp?URL=/arcobjects/9.1/ComponentHelp/esriArcCatalogUI/esriGxDlgIDs.htm for a listing of available esriGxDlgIDs that can be used as the esriGxDlgID parameter.</remarks> Public Sub OpenGxDialog(ByVal application As ESRI.ArcGIS.Framework.IApplication, ByVal esriGxDlgID As ESRI.ArcGIS.ArcCatalogUI.esriGxDlgIDs) If application Is Nothing Then Return End If Dim dialogID As System.Int32 = CInt(esriGxDlgID) ' example: ESRI.ArcGIS.ArcCatalogUI.esriGxDlgIDs.esriGxDlgCustomize If (Not application.IsDialogVisible(dialogID)) Then Dim optionalParam As System.Object = System.Type.Missing application.ShowDialog(dialogID, optionalParam) End If End Sub