Results 1 to 3 of 3

Thread: Hiding the task bar?

  1. #1
    Guest
    Here you go:

    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 X
    
    Private Sub Command1_Click()
    'Hide
    tray& = findwindow("Shell_TrayWnd", vbNullString)
    X = showwindow(tray&, SW_HIDE)
    End Sub
    
    Private Sub Command2_Click()
    'Show
    tray& = findwindow("Shell_TrayWnd", vbNullString)
    X = showwindow(tray&, SW_SHOW)
    End Sub

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    thanks matt, but why did you post it 2 times?
    NXSupport - Your one-stop source for computer help

  3. #3
    Guest
    I accidently hit submit twice. Don't worry, I don't keep two of the same posts up, especially not in the same thread. It has been deleted. Both were the same code though, so not to worry.

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