AppMinimize (statement)

Syntax

AppMinimize [name$]

Description

Minimizes the named application.

Comments

The name$ parameter is a String containing the name of the desired application. If it is omitted, then the AppMinimize function minimizes the active application.

Example

Sub Main()

  AppMinimize "Program Manager"   'Maximize Program Manager.
  
  If AppFind$("NotePad") <> "" Then
    AppActivate "NotePad"      'Set the focus to NotePad.
    AppMinimize           'Maximize it.
  End If
End Sub

See Also

AppMaximize (statement); AppRestore (statement); AppMove (statement); AppSize (statement); AppClose (statement).

Notes

If the named application is minimized or hidden, the AppMinimize statement will have no effect.

The name$ parameter is the exact string appearing in the title bar of the named application's main window. If no application is found whose title exactly matches name$, then a second search is performed for applications whose title string begins with name$. If more than one application is found that matches name$, then the first application encountered is used.

AppMinimize generates a runtime error if the named application is not enabled, as is the case if that application is displaying a modal dialog box.

More information

A