Click here to Skip to main content
15,894,405 members
Articles / Programming Languages / C#
Article

A Simple Progress Bar

Rate me:
Please Sign up or sign in to vote.
1.00/5 (10 votes)
16 Jan 2006 32.1K   326   10   4
Progress bar that shows status dynamically.

Sample Image

Introduction

This article illustrates a progress bar that updates itself based on a value changed in a dropdown.

Background

I designed this progress bar to be as simple as possible, without using any third party tool. Why use third party tools if we can easily create it otherwise?

I think this is one of the simplest progress bars possible.

Using the code

The following code snippet illustrates how the progressbar can be used:

C#
int numcells = ddl.Items.Count ;//* 2; //Dynamic 
int userdefcell=Convert.ToInt32(ddl.SelectedItem.Value); 
dynaTableyat.BorderWidth=1; TableRow r1 = new TableRow(); 
TableHeaderCell TH0=new TableHeaderCell(); 
r1.Width=300; 
dynaTableyat.Width=150 ; 

if(DropDownList1.Items.Count > 10) 
{
    dynaTableyat.Width=150 + ddl.Items.Count * 10 ;
} 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Well i am into software development for more than 2 years ,i a have been into hard core development on DotNet during these years and continuing that.


Well something about me i am half ,surprised i have got my twin also which makes me full hehe.

He is also into DotNet With Tridion CMS his email is vibhavg@gmail.com

With Regards

[Yatharth]

Email: yatharth@gmail.com

Comments and Discussions

 
QuestionJoke? Pin
ZGelic13-May-09 1:44
ZGelic13-May-09 1:44 
GeneralA cool progress bar with animated circles Pin
OwfAdmin5-Aug-07 9:26
OwfAdmin5-Aug-07 9:26 
try this animated progress bar with cool circles
http://www.openwinforms.com/infinite_progress_bar.html


Generalanother stylish progress bar control Pin
Ramesh Soni7-Jul-07 22:30
Ramesh Soni7-Jul-07 22:30 
GeneralWell done!!! Pin
primey1-Oct-06 16:21
primey1-Oct-06 16:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.