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): 9399/ 170

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

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 5 and 2 and type the answer here:

User Comments

Title: Re: Attach Full Source Code   
Name: Sergey Zwezdin
Date: 3/8/2010 12:54:15 AM
Comment:
Ashish, send me mail-request, please?
sergey@zwezdin.com
Title: Attach Full Source Code   
Name: Ashish Kumar
Date: 3/7/2010 3:26:16 AM
Comment:
hi...
please attach full source code with this article.
please.........
Title: reviews   
Name: r4 dsi
Date: 11/30/2009 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: 11/6/2009 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-2010 ASPAlliance.com  |  Page Processed at 3/14/2010 3:12:59 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search