Progress bar on windows taskbar c #

4

I'm developing an application that will send email to multiple clients. I would like to display the progress of the submission even with the form minimized. I would like to do the same way Windows 7 copies files, in which even the copy window being minimized, the green bar with progress appears in the Windows taskbar.


I did some research and from what I saw, I would have to use the Windows7Taskbar.SetProgressValue method, but in the tests I did, I did not update the progress!

    
asked by anonymous 07.12.2014 / 13:08

1 answer

2

Considering the image you posted, I believe you are using Windows 7, a solution to your problem would be to use the Windows 7 Progress Bar component, which can be downloaded here , it is licensed under the BSD license.

After downloading add the component to Toolbox, you can do this by right-clicking on a tab of your preference ( Common Controls for example) and selecting the option Choose Items... , in the window that opens, in the tab .NET Framework Components , click the Browse... button and select the Windows7ProgressBar.dll file that is in Windows7ProgressBar\Control\bin\Release (this directory is referring to the folders that are inside the compressed file) and then click Ok, Windows7ProgressBar available for use, then just click and drag to your Form .

The properties and events of the component are the same as ProgressBar with some more things, such as properties: ShowInTaskbar and State .

The ShowInTaskbar property indicates whether the progress should be displayed on the taskbar, and the State property, which progress state (this property changes the progress color to green, red, or yellow) / p>

Inside the compressed file, there is an example using C# , I will not put it here because, because of your doubt, the problem is related to displaying the progress in the taskbar and not using ProgressBar .

  

Note: I consider that you are using Visual Studio.

    
07.12.2014 / 15:43