Home General VB/VBA Show/Hide Taskbar
20 | 05 | 2012
This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade

Show/Hide Taskbar PDF Print E-mail
User Rating: / 0
PoorBest 
Tutorials
Written by Administrator   

Toggle between taskbar status. Use Showtskbr True and Showtskbr False to show or hide the taskbar.

[code]

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As StringByVal lpWindowName As StringAs Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As LongByVal nCmdShow As LongAs Long
 
Private Const SW_HIDE = 0
Private Const SW_SHOW = 5

 
Sub ShowTskbr(ByVal bVisible As Boolean)
    Dim hWnd_StartBar As Long
    hWnd_StartBar = FindWindow("Shell_TrayWnd", "")
    If bVisible Then
        ShowWindow hWnd_StartBar, SW_SHOW
    Else
        ShowWindow hWnd_StartBar, SW_HIDE
    End If
End Sub
 
[/code]
 
 
 
 
Attachments:
FileDescriptionFile sizeDownloads
Download this file (ShowHide taskbar.zip)ShowHide taskbar.zip 1 Kb160
 

Add comment


Security code
Refresh

This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade