CodeItBetter Programming Another VB Programming Blog

How to Hide Taskbar

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'System & API - How to Hide Taskbar
Option Explicit
 
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, _
    ByVal lpWindowName As String) As Long
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _
    ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, _
    ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
 
Public Sub HideTaskBar()
    TaskBarhWnd = FindWindow("Shell_traywnd", "")
    If TaskBarhWnd <> 0 Then
        Call SetWindowPos(TaskBarhWnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
    End If
End Sub

Related posts:

  1. How to Show Taskbar
  2. How to Show/Hide your SystemTray
  3. How to Show/Hide the Start Button from the task bar
  4. How to handle Size & Position of Console Application with Windows Application in VB6
  5. How to Hide/Show the Title bar at Run-Time
  6. Check & Terminate Process using Window Title
  7. How to bring an external window to top using its caption
  8. How to Change the visibility of the app in the taskbar at runtime
  9. How to Change Other Window’s Caption
  10. How to Show/Hide all Desktop Icons

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.