Developing with the Taskbar in Windows 7
page 3 of 7
by Sergey Zwezdin
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 34200/ 66

Progress bar

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

WindowsFormsExtensions.SetTaskbarProgress(this, 35); 

SetTaskbarProgressState method which allows us to set a current state of a progress-bar.

Listing 2: Setting state for progress bar

WindowsFormsExtensions.SetTaskbarProgressState(this, 
  Windows7Taskbar.ThumbnailProgressState.Normal);

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


View Entire Article

User Comments

Title: Source Code & Windows 7 Lib   
Name: Willy
Date: 2011-01-13 9:07:34 PM
Comment:
hi sergey, your article is amazing
please send me the source code, I need to improved my application, email me at skylancer3id@yahoo.com

I wonder where is download the windows 7 library for C# visual studio .net 2008, my application running on it.

many thanks.
Willy
Title: Re: Attach Full Source Code   
Name: Sergey Zwezdin
Date: 2010-03-08 12:54:15 AM
Comment:
Ashish, send me mail-request, please?
sergey@zwezdin.com
Title: Attach Full Source Code   
Name: Ashish Kumar
Date: 2010-03-07 3:26:16 AM
Comment:
hi...
please attach full source code with this article.
please.........
Title: reviews   
Name: r4 dsi
Date: 2009-11-30 5:43:34 AM
Comment:
Windows 7 is more than what Vista should have been, it's where Microsoft needed to go. How much damage Vista did and whether Windows 7 is enough for people to finally abandon Windows XP are questions that nobody has the answers to right now.
Title: Amazing !   
Name: Aamod Thakur
Date: 2009-11-06 4:15:19 AM
Comment:
Amazing Article, Very Informative.

Thanks Sergey

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-01-24 11:13:42 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search