VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Hides / Shows the entire Task Bar.

by Thejan J Rajapakshe (7 Submissions)
Category: Encryption
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 3rd January 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Hides / Shows the entire Task Bar.

API Declarations


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
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Const SWP_HIDEWINDOW = &H80
Const SWP_SHOWWINDOW = &H40

Rate Hides / Shows the entire Task Bar.



'Place the following code in under a command button or in a menu, etc...
hwnd1 = FindWindow("Shell_traywnd", "")
Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)


'Show The Task Bar
Place the following code in under a command button or in a menu, etc...
Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)


Download this snippet    Add to My Saved Code

Hides / Shows the entire Task Bar. Comments

No comments have been posted about Hides / Shows the entire Task Bar.. Why not be the first to post a comment about Hides / Shows the entire Task Bar..

Post your comment

Subject:
Message:
0/1000 characters