Home General VB/VBA Disable/Enable 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

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

Use the function below to enable or disable the taskbar.

[code]

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As StringByVal lpWindowName As StringAs Long

Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As LongByVal fEnable As LongAs Long

 
Sub EnableTskbr(ByVal bEnable As Boolean)
    Dim hWnd_StartBar As Long
    hWnd_StartBar = FindWindow("Shell_TrayWnd", "")
    If bEnable Then
        EnableWindow hWnd_StartBar, True
    Else
        EnableWindow hWnd_StartBar, False
    End If
End Sub
 
[/code]
Attachments:
FileDescriptionFile sizeDownloads
Download this file (ShowHide taskbar.zip)ShowHide taskbar.zip 1 Kb111
 

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