How to toggle/switch Windows taskbar from “show” to “auto-hide” (and vice-versa)?

后端 未结 7 2227
忘掉有多难
忘掉有多难 2021-02-15 14:58

Basically I want to make simple toggle program (that will be mapped to some keyboard shortcut) that set taskbar to auto-hide mode if in normal mode (and conversely, to normal sh

7条回答
  •  不思量自难忘°
    2021-02-15 15:09

    Hiding the taskbar

    It's a more WIN32 API related issue than C#. You can use this (needed to be translated to dot net of course) to hide the task bar.

    You can use http://www.pinvoke.net to translate the WIN32 API calls to dot net.

    Set auto-hide to the taskbar

    You can achieve that by manipulating the registry using the keys that described here.

    It should be an easy task, Good luck.

提交回复
热议问题