ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hide or decrease taskbar (https://www.excelbanter.com/excel-programming/321351-hide-decrease-taskbar.html)

ROland

hide or decrease taskbar
 
Is there a method to hide or decrease the taskbar from 2 to 1 line(s)
(autohide?) using a visual basic command?

thanks
roland

Michel Pierron

hide or decrease taskbar
 
Hi Roland,
Private Declare Function FindWindowEx& Lib "user32" _
Alias "FindWindowExA" (ByVal hWnd1& _
, ByVal hWnd2&, ByVal lpsz1$, ByVal lpsz2$)
Private Declare Function ShowWindow& Lib "user32" _
(ByVal hwnd&, ByVal nCmdShow&)

Sub TaskBar_Hide()
ShowWindow FindWindowEx(0, 0, "Shell_TrayWnd", vbNullString), 0
End Sub

Sub TaskBar_Show()
ShowWindow FindWindowEx(0, 0, "Shell_TrayWnd", vbNullString), 5
End Sub

MP

"Roland" a écrit dans le message de
...
Is there a method to hide or decrease the taskbar from 2 to 1 line(s)
(autohide?) using a visual basic command?

thanks
roland




All times are GMT +1. The time now is 11:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com