AppMaximize (statement)

Syntax AppMaximize [name$]
Description Maximizes the named application.
Comments The name$ parameter is a String containing the name of the desired application. If it is omitted, then the AppMaximize function maximizes the active application.
Example
Sub Main()
  AppMaximize "Program Manager"  'Maximize Program Manager.
  
  If AppFind$("NotePad") <> "" Then
    AppActivate "NotePad"      'Set the focus to NotePad.
    AppMaximize           'Maximize it.
  End If
End Sub
See Also AppMinimize (statement); AppRestore (statement); AppMove (statement); AppSize (statement); AppClose (statement).
Notes If the named application is maximized or hidden, the AppMaximize 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. AppMaximize generates a runtime error if the named application is not enabled, as is the case if that application is displaying a modal dialog box.