---
title: "Using Progress Bar Status Bar Timer Control in CSharp .NET"  
description: "/* Style Definitions */   table.MsoNormalTable  	{mso-style-name:\"Table Normal\";  	mso-tstyle-rowband-size:0;  	mso-tstyle-colband-size:0;  	mso-st"  
author: "Anonymous User"  
published: 2010-07-30  
updated: 2020-07-11  
canonical: https://www.mindstick.com/articles/98/using-progress-bar-status-bar-timer-control-in-csharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Using Progress Bar Status Bar Timer Control in CSharp .NET

Here I’m going to demonstrate how to use Progress Bar, status Bar and Timer controls in C#.Net

\

![Using Progress Bar Status Bar Timer Control in CSharp .NET](https://www.mindstick.com/mindstickarticle/502c280e-9861-4b6b-b808-004a81c48582/images/5d4359df-8f6a-4eff-b37b-19bffb07b706.png)

## Example

```
//creating method getTime() to get current system time.string getTime()        {            string time = "";            time = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();            return time;        }          //executing progress bar at button click event.        private void btnLoad_Click(object sender, EventArgs e)        {                        for (int i = progressBar1.Minimum; i <= progressBar1.Maximum; i++)            {         //displaying ‘loading...’ in status bar                statLabel.Text = "loading...";                progressBar1.Increment(1);            }                         statLabel.Text = "Loading Complete";        }         private void Form2_Load(object sender, EventArgs e)        {         //setting timer interval to 1sec            timer1.Interval = 1000;         //enabling timer            timer1.Enabled = true;        //seting minimun limit of progress bar            progressBar1.Minimum = 1;       //seeting maximum limit of progress bar            progressBar1.Maximum = 1000000;       //setting step            progressBar1.Step = 1;                 //displating current time in label            label1.Text = getTime();        }       //updating label text every sec. to display current time at timer tick event.        private void timer1_Tick(object sender, EventArgs e)        {                        label1.Text = getTime();        }
```

\

![Using Progress Bar Status Bar Timer Control in CSharp .NET](https://www.mindstick.com/mindstickarticle/502c280e-9861-4b6b-b808-004a81c48582/images/b36cf86e-3e63-468a-8d0c-83ce56994efc.png)

---

Original Source: https://www.mindstick.com/articles/98/using-progress-bar-status-bar-timer-control-in-csharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
