|
-
Mar 8th, 2002, 11:44 AM
#1
Thread Starter
Member
The taskbar doesn't want to come back after I hide it.... :|
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
[]:::::::::::[];;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;/
Did you know that you can be your own grandpa?! It's really cool. . . . . .
------------------------------------------------
But I'm not. . . Im just Myself. . . . .
Not my own grandpa. . . . . .
I put on my own pants today. . . . .
Im so proud of myself. . . . . 
-
Mar 8th, 2002, 01:36 PM
#2
VB Code:
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
-
Mar 13th, 2002, 02:06 AM
#3
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|