How to hide the taskbar in vbs

Written by keith patrick
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to hide the taskbar in vbs
VBScript can be used within website coding alongside HTML. (code image by Charles Taylor from

VBScript, commonly abbreviated as VBS, is a scripting language used on the Microsoft Windows platform. VBS coders create scripts that can perform small tasks within the Windows operating system. VB scripts are used to do things like automatically open specific applications upon starting up the computer. You can hide the Windows taskbar using a premade VB script and executing it through the "Run" application.

Skill level:

Other People Are Reading


  1. 1

    Click "Start" and then click "Programs." Click "Accessories" and then choose "Notepad" in the program list.

  2. 2

    Type or copy and paste the following code into a text file:

    Sub Taskbar(blnValue As Boolean)

    Dim lngHandle As Long
    Dim lngStartButton As Long
    lngHandle = FindWindow("Shell_TrayWnd", "")
    If blnValue Then
        ShowWindow lngHandle, 5
        ShowWindow lngHandle, 0
    End If

    End Sub

    Private Sub Cmdhide_Click()

    Dim A As Boolean

    A = False

    Taskbar (A)

    End Sub

    Private Sub Cmdunhide_Click()

    Dim A As Boolean

    A = True

    Taskbar (A)

    End Sub

  3. 3

    Select "File" and then choose "Save As." Type a name for your file and then click the "File Type" drop-down menu. Select ".VBS" from the available list. Click the "Save" button.

  4. 4

    Click "Start" and then click "Run." Type "CMD" and then press the "Enter" button. Type "Cscript" followed by the name of the .VBS file. Windows will run the script

    and the taskbar will automatically hide itself.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.