Nasconde o mostra la taskbar Private Declare Sub 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) Private 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 Private Sub Command1_Click() Dim WHandle1 As Long WHandle1 = FindWindow("Shell_traywnd", "") Call SetWindowPos(WHandle1, 0, 0, 0, 0, 0, SWP_HIDEWINDOW) End Sub Private Sub Command2_Click() Dim WHandle2 As Long WHandle2 = FindWindow("Shell_traywnd", "") Call SetWindowPos(WHandle2, 0, 0, 0, 0, 0, SWP_SHOWWINDOW) End Sub Private Sub Form_Load() Command1.Caption = "Nascondi TaskBar" Command2.Caption = "Mostra TaskBar" End Sub |