Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Minimizes all of the windows on the desktop. This method has the same effect as right-clicking the taskbar and selecting Minimize All Windows on older systems or clicking the Show Desktop icon in the Quick Launch area of the taskbar in Windows 2000 or Windows XP.
iRetVal = Shell.MinimizeAll()
Shell.MinimizeAll() As Integer
This method has no parameters.
The following example shows MinimizeAll in use. Proper usage is shown for JScript, VBScript, and Visual Basic.
JScript:
<script language="JScript">
function fnShellMinimizeAllJ()
{
var objShell = new ActiveXObject("shell.application");
objShell.MinimizeAll();
}
</script>
VBScript:
<script language="VBScript">
function fnShellMinimizeAllVB()
dim objShell
set objShell = CreateObject("shell.application")
objShell.MinimizeAll
set objShell = nothing
end function
</script>
Visual Basic:
Private Sub fnShellMinimizeAllVB()
Dim objShell As Shell
Set objShell = New Shell
objShell.MinimizeAll
Set objShell = Nothing
End Sub
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
IDL |
|
DLL |
|
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today