Search code examples
c#.nettaskbar

showing the autohiding windows taskbar


I have defined the windows taskbar as auto-hiding. Now I am showing for a way to show the taskbar from C#-code. Can somebody help me perhaps with a little code-snipped?


Solution

  • The taskbar in an AppBar. Which can be controlled using the SHAppBarMessage API.

    Here is a separate article on AppBar's which can help you better understand how to use the API: http://www.codeproject.com/Articles/3728/C-does-Shell-Part-3

    Edit: If you need to find the handle for the Taskbar itself, you can use the FindWindow method. The taskbar is named "Shell_traywnd"