Results 1 to 3 of 3

Thread: The taskbar doesn't want to come back after I hide it.... :|

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    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. . . . .

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. Private Const SWP_HIDEWINDOW = &H80
    2. Private Const SWP_SHOWWINDOW = &H40
    3.  
    4. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    5. 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
    6.  
    7. Private Sub cmdHide_Click()
    8. Dim Thwnd As Long
    9. Thwnd = FindWindow("Shell_traywnd", "")
    10. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
    11. End Sub
    12.  
    13. Private Sub cmdShow_Click()
    14. Dim Thwnd As Long
    15. Thwnd = FindWindow("Shell_traywnd", "")
    16. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
    17. End Sub

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    Talking Thanks

    That is great code, thanks! Worked perfect!!!
    []:::::::::::[];;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;/

    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. . . . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width