Progress bar in windows c#Taskbar

Asked

Viewed 862 times

4

I’m developing an app that will send email to multiple customers.
I would like to display the progress of the shipment even with the form minimized.
I would like to do the same way that Windows 7 copies files, where even though the copy window is minimized, the green bar appears in the Windows taskbar with progress.

inserir a descrição da imagem aqui
I did some research and from what I saw, I would have to use the methodWindows7Taskbar.SetProgressValue, however, in the tests I did, did not update the progress!

1 answer

3


Considering the image you posted, I believe you are using Windows 7, a solution to your problem would be to use the component Windows 7 Progress Bar, downloadable here, It is distributed with license BSD.

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 on the button Browse... and select the file Windows7ProgressBar.dll who is in the Windows7ProgressBar\Control\bin\Release (this directory is referring to the folders that are inside the compressed file) and then click OK, done you will have the component Windows7ProgressBar available for use, then just click and drag to your Form.

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

The estate ShowInTaskbar indicates whether progress should be displayed in the taskbar, and the property State, progress status (this property changes the progress color to green, red, or yellow)

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

Observing: I considered that you are using Visual Studio.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.