Not a Member Yet,
Click here to Register
How do you like the new design?

ID: 157
Viewed: 2559
Added: Apr 29, 2002
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo

User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty


Highlight all by clicking in box
' Declarations
Public Const SWP_HIDEWINDOW = &H80
Public Const SWP_SHOWWINDOW = &H40

Public Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long

Public 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 DisplayTaskBar(ByVal bVal As Boolean)
Dim lTaskBarHWND As Long
Dim lRet As Long
Dim lFlags As Long

On Error GoTo vbErrorHandler


lTaskBarHWND = FindWindow("Shell_traywnd", "")

lRet = SetWindowPos(lTaskBarHWND, 0, 0, 0, 0, 0, lFlags)

If lRet < 0 Then
' Handle error from api
End If

Exit Sub

' Handle Errors here
End Sub

Highlight All

No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.

Replying to a Comment...

Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2018 All Rights Reserved. Conditions