Users Pricing

articles

Home Articles ProgressBar Control in C#.Net – MindStick

ProgressBar Control in C#.Net

John Smith 33130 24 Jan 2011 Updated 07 Sep 2019

A ProgressBar control is used to represent the progress of operation that takes time to complete operation where a user has to wait for the operation to be finished.

Drag and drop ProgressBar Control and a button from toolbox on the window Form.

ProgressBar Control in C#.Net

By default maximum value of ProgressBar is set 100 and minimum value is set 0 you can change this value.

Code:

Write code on button click event.

ProgressBar Control in C#.Net

Double click on Click event.

private void button1_Click_1(object sender, EventArgs e)
{
            while (progressBar1.Value < 100)
                progressBar1.Value += 5;
}

Run the project

ProgressBar Control in C#.Net

When you click show button then Progress Bar will start.

ProgressBar Control in C#.Net

 


John Smith

Sr. Software Developer

I am best.


Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md