spyplayer
Mar 8th, 2002, 10:44 AM
The taskbar wont come back.... can anyone give me code to make it dissapear and then come back when I want, on form1 i have the form_load take away the tool bar,(I FORGOT WHAT IT IS CALLED, THE THING T THE BOTTOM OF THE SCREEN) and then on form2 form unload I want it to come back...
THANKS
- SPY:rolleyes:
Hack
Mar 8th, 2002, 12:36 PM
Private Const SWP_HIDEWINDOW = &H80
Private Const SWP_SHOWWINDOW = &H40
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
Private Sub cmdHide_Click()
Dim Thwnd As Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
End Sub
Private Sub cmdShow_Click()
Dim Thwnd As Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
End Sub
spyplayer
Mar 13th, 2002, 01:06 AM
That is great code, thanks! Worked perfect!!!:D :D ;) ;) :p :p :) :) :cool: :cool: :rolleyes: :rolleyes: