Results 1 to 4 of 4

Thread: How can I hide the Windows Task Bar from VB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Caracas, Miranda, Venezuela
    Posts
    69

    Question

    Please help me :
    What API can I use to hide the Windows Task Bar from VB

  2. #2
    Guest
    Set the ShowInTaskBar property of the Form to false.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    New Member
    Join Date
    May 2000
    Location
    Argentina
    Posts
    3

    Here is the solution ;)

    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

    Declare Function FindWindow Lib "user32" Alias _
    "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long

    Const SWP_HIDEWINDOW = &H80
    Const SWP_SHOWWINDOW = &H40

    'To Hide
    Private Sub Command1_Click()
    Dim Thwnd as Long
    Thwnd = FindWindow("Shell_traywnd", "")
    Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
    End Sub

    'To Show
    Private Sub Command2_Click()
    Dim Thwnd as Long
    Thwnd = FindWindow("Shell_traywnd", "")
    Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
    End Sub
    Chuckito :P

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