.NET Progress bar in taskbar on windows 7

2019-03-09 23:21发布

问题:

How can I make my winforms app to show its progress bar in the icon of the taskbar on windows 7?

e.g: chrome with downloads.

Thanks!!

Diego

回答1:

You have to download the Windows API Code Pack for .NET and use those components to interact with Windows 7 (assuming you're not using .NET 4.0).

If you are using .NET 4.0, you should include the System.Windows.Shell namespace to gain access to the Windows 7 task bar features.



回答2:

In WPF4 you have

 <Window.TaskbarItemInfo>
        <TaskbarItemInfo> </..>
 </...>


回答3:

You can use Windows® API Code Pack. Demo code is available at Windows 7 Taskbar Dynamic Overlay Icons and Progress Bars