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.