PDA

Click to See Complete Forum and Search --> : How can I hide the Windows Task Bar from VB


Rafael
Jun 7th, 2000, 08:20 PM
Please help me :
What API can I use to hide the Windows Task Bar from VB

Jun 8th, 2000, 02:12 AM
Set the ShowInTaskBar property of the Form to false.

kedaman
Jun 8th, 2000, 04:36 AM
hide and show the taskbar:
http://forums.vb-world.net/showthread.php?threadid=17200

antixto
Jun 9th, 2000, 05:34 PM
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