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


Minimize Application Window Snippet (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference

Minimize Application Window Snippet

Minimize the application window for ArcMap, ArcCatalog, ArcScene or ArcGlobe.

[C#]
///<summary>Minimize the application window for ArcMap, ArcCatalog, ArcScene or ArcGlobe.</summary>
///  
///<param name="application">An IApplication interface.</param>
///   
///<remarks></remarks>
public void MinimizeApplicationWindow(ESRI.ArcGIS.Framework.IApplication application)
{
  ESRI.ArcGIS.Framework.IWindowPosition windowPos=application as ESRI.ArcGIS.Framework.IWindowPosition;
  windowPos.State=ESRI.ArcGIS.Framework.esriWindowState.esriWSMinimize;
}
[Visual Basic .NET]
'''<summary>Minimize the application window for ArcMap, ArcCatalog, ArcScene or ArcGlobe.</summary>
'''  
'''<param name="application">An IApplication interface.</param>
'''   
'''<remarks></remarks>
Public Sub MinimizeApplicationWindow(ByVal application As ESRI.ArcGIS.Framework.IApplication)

  Dim windowPos As ESRI.ArcGIS.Framework.IWindowPosition=CType(application, ESRI.ArcGIS.Framework.IWindowPosition)
  windowPos.State=ESRI.ArcGIS.Framework.esriWindowState.esriWSMinimize

End Sub

Additional Requirements
  • The code in this document requires the following References added to the Visual Studio project:
  • ESRI.ArcGIS.Framework
  • ESRI.ArcGIS.System