progress bar on taskbar icon using winforms .net 6 vb.net

Viewed 213

I am having a hard time finding a solution to display the status of a progressbar on the taskbar icon on Windows 10/11. Do you have suggestions. I use Winforms with VB.Net .Net 6.

enter image description here

2 Answers

thanks to all the same, I solved it like this:

installed package NuGet: "Microsoft-WindowsAPICodePack-Core" by rpastric, contre, dahall

'Imports
Imports Microsoft.WindowsAPICodePack.Taskbar

        Dim stato_istanza = TaskbarProgressBarState.Normal
        Dim istanza = TaskbarManager.Instance
        istanza.SetProgressState(stato_istanza)
        istanza.SetProgressValue(value, valuemax)

All tested and working with Winforms VB.Net with .Net 6.0 and Visual Studio 2022

Related