Pin *.lnk file to Windows 7 Taskbar using C#

前端 未结 4 2026
予麋鹿
予麋鹿 2020-12-14 04:55

Even the programmatic pinning of icons in Windows 7 seems it\'s not permitted (like it says here: http://msdn.microsoft.com/en-us/library/dd378460(v=VS.85).aspx), there are

4条回答
  •  旧时难觅i
    2020-12-14 05:00

    Update for UWP apps running on Windows 10 with the Fall Creators Update (Build 16299 or higher):

    You can programmatically pin your own app to the taskbar, just like you can pin your app to the Start menu. And you can check whether your app is currently pinned, and whether the taskbar allows pinning.

    You can access the TaskbarManager API directly, as described in MS docs.

    I wanted to do this with a WinForms application, but it does not seem like it is going to work because I cannot reference the Windows.Foundation APIs.

提交回复
热议问题