One of the most appreciable changes in the task panel of
Windows 7 is the possibility to display progress of a task execution (progress
bar) in the task panel directly.
Figure 1: Progress bar at task panel in Windows 7
In this figure it is seen very well, that on the task panel
the information about copying process is displayed. Such functionality is realized
in Windows 7 for files copying, data from a network downloading (Internet
Explorer) and in other applications. This functionality can be used and for
your own applications. A lot of scenarios can be - displaying of data
transformation process, copying, formations of data, construction of reports,
generation of images, etc.
WindowsFormsExtensions сlass contains two methods
which should take place in this case: SetTaskbarProgress and
SetTaskbarProgressState. The call of the first method allows us to specify the
percent of a current task execution.
Listing 1: Setting values for progress bar of task
panel of Windows 7
SetTaskbarProgressState method which allows us to set a
current state of a progress-bar.
Listing 2: Setting state for progress bar
There are four available modes: Normal, Indeterminate, Error
(displayed by a red color) and Paused (displayed by a yellow color).
Figure 2: States of progress bar