Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / WinForms

WYSIWYG Progress Circle for .NET Framework (C#)

3.94/5 (30 votes)
22 Jun 2008GPL3 3   3.4K  
Progress Circle control for Windows Forms applications
ProgressCircle

Introduction

Would you like to add some visual enhancement to your Windows Forms application? Do you have processes that take too long? This control is for you.

Basically, it is a progress bar, but it is circular. You can fully customize its appearance. For example, you can change the ring thickness, number of segments, ring color, progress color, interval, etc.

The control can be added to the toolbox and it can be added to controls by just dragging and dropping from toolbox.

It is an open source (C#) project and compiled with .NET Framework 2.0.

Using the Code

It is pretty simple to use the control. All you need to do is to set the control's Rotate property to true to start the circle.

C#
this.progressBar1.BackColor = System.Drawing.Color.Transparent;
this.progressBar1.ForeColor = System.Drawing.Color.Gold;
this.progressBar1.Interval = 100;
this.progressBar1.Location = new System.Drawing.Point(235, 90);
this.progressBar1.Name = "progressBar1";
this.progressBar1.RingColor = System.Drawing.Color.White;
this.progressBar1.RingThickness = 30;
this.progressBar1.Size = new System.Drawing.Size(80, 80);
this.progressBar1.Rotate = true;         

History

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)