Results 1 to 2 of 2

Thread: taskbar??

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Posts
    48

    taskbar??

    Is there a way to turn the taskbar on/off?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Try this:
    VB Code:
    1. Public Const SWP_HIDEWINDOW = &H80
    2. Public Const SWP_SHOWWINDOW = &H40
    3.  
    4. Public Declare Function FindWindow Lib "user32" _
    5.         Alias "FindWindowA" (ByVal lpClassName As String, _
    6.         ByVal lpWindowName As String) As Long
    7.  
    8. Public Declare Function SetWindowPos Lib "user32" _
    9.         (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, _
    10.         ByVal x As Long, ByVal y As Long, ByVal cx As Long, _
    11.         ByVal cy As Long, ByVal wFlags As Long) As Long
    12.  
    13. Private Sub Command1_Click()
    14. Dim Thwnd as Long
    15. Thwnd = FindWindow("Shell_traywnd", "")
    16. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
    17. End Sub
    18.  
    19. Private Sub Command2_Click()
    20. Dim Thwnd as Long
    21. Thwnd = FindWindow("Shell_traywnd", "")
    22. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
    23. End Sub

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