---
title: "ProgressBar Control in C#.Net"  
description: "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"  
author: "John Smith"  
published: 2011-01-24  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/418/progressbar-control-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# ProgressBar Control in C#.Net

A ProgressBar [control](https://yourviews.mindstick.com/view/83439/bipartisan-gun-control-bill-passed-in-us-after-decades) is used to represent the [progress](https://yourviews.mindstick.com/view/88472/the-compromise-between-comfort-and-progress) of [operation](https://yourviews.mindstick.com/view/83916/why-is-it-necessary-to-sterilize-operation-theater) that takes time to complete operation where a user has to wait for the operation to be finished.\

[Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) ProgressBar Control and a [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) from toolbox on the [window Form](https://www.mindstick.com/forum/527/how-to-pass-datagridview-s-cells-value-to-another-window-form).

![ProgressBar Control in C#.Net](https://www.mindstick.com/mindstickarticle/b0025ebc-defb-4267-bd3a-68f0f999a226/images/e5e202ad-b3bd-40b2-ada3-0e3d21ae5b4f.png)

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](https://www.mindstick.com/mindstickarticle/b0025ebc-defb-4267-bd3a-68f0f999a226/images/ececea80-1275-427c-8fbe-a1d4c8513100.png)

[Double click](https://www.mindstick.com/forum/156225/differentiate-between-google-adword-and-double-click) on **[Click event](https://www.mindstick.com/forum/424/how-to-call-form_paint-event-on-button-click-event)**.

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

**Run the [project](https://yourviews.mindstick.com/story/1788/things-to-ensure-your-construction-project-is-successful)**

![ProgressBar Control in C#.Net](https://www.mindstick.com/mindstickarticle/b0025ebc-defb-4267-bd3a-68f0f999a226/images/35212fbd-08cc-42fb-af3f-021c96525241.png)

When you click show button then Progress Bar will start.

![ProgressBar Control in C#.Net](https://www.mindstick.com/mindstickarticle/b0025ebc-defb-4267-bd3a-68f0f999a226/images/d6d2b4ef-0600-445c-8bb9-ffbdd79d5bd1.png)

---

Original Source: https://www.mindstick.com/articles/418/progressbar-control-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
