Partager via


SHOWINTASKBAR Attribute | showInTaskBar Property

Sets or gets a value that indicates whether the HTML Application (HTA) is displayed in the Windows taskbar.

Syntax

HTML <HTA:APPLICATION SHOWINTASKBAR = bShow... >
Scripting [ bShow = ] HTA:APPLICATION.showInTaskBar

Possible Values

bShow A Boolean that specifies one of the following values.
yes
Default. Application is displayed in the Windows taskbar.
no
Application is not displayed in the Windows taskbar.

The property is read-only. The property has a default value of yes.

Remarks

Note  The showInTaskBar property is read-only; however, the SHOWINTASKBAR attribute can be used to set the initial value.

The showInTaskBar property does not affect whether the application appears in the list of applications displayed when the user presses ALT+TAB.

Example

This example shows how to get the showInTaskBar property.

<HTML>
<HEAD>
   <HTA:APPLICATION ID="oHTA"
    APPLICATIONNAME="myApp"
    SHOWINTASKBAR="no"
   >
   <SCRIPT>
      alert ("showInTaskBar    = " + oHTA.showInTaskBar);
   </SCRIPT>
</HEAD>
<BODY SCROLL="no">

</BODY>
</HTML>

Code example: https://samples.msdn.microsoft.com/workshop/samples/author/hta/hta_allEX.hta

Applies To

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)