Results 1 to 5 of 5

Thread: Taskbar

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    medina, OH
    Posts
    125
    How do I hide the taskbar?

  2. #2
    New Member
    Join Date
    May 1999
    Location
    Somerset, NJ
    Posts
    13

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    medina, OH
    Posts
    125

    thanks

    thanks

  4. #4
    Guest
    You should use the ShowWindow api function to hide the taskbar.

    Code:
    Declare Function FindWindow Lib "user32" _
     Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long
    
    Declare Function ShowWindow Lib "user32" Alias "ShowWindow" _
     (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    
    Public Const SW_HIDE = 0
    Public Const SW_SHOW = 5
    
    Dim tray
    Dim trayShow
    
    Usage
    
    Private Sub Command1_Click()
    'Hide
    tray = FindWindow("Shell_TrayWnd", vbNullString)
    trayShow = ShowWindow(tray, SW_HIDE)
    End Sub
    
    Private Sub Command2_Click()
    'Show
    tray = FindWindow("Shell_TrayWnd", vbNullString)
    trayShow = ShowWindow(tray, SW_SHOW)
    End Sub

  5. #5
    Guest
    the hWnd's should be declared as Long rather than a Variant.
    Code:
    Dim tray As Long
    Dim trayShow As Long

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