Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make an indeterminate progress bar in WinForms?

How do you make an indeterminate progress bar in a WinForms application? In Silverlight and WPF, you would simply set the ProgressBar's IsIndeterminate property to true. However, this property does not exist in WinForms. How would you create an indeterminate progress bar in WinForms?

like image 959
msbg Avatar asked Jun 16 '13 01:06

msbg


People also ask

What is indeterminate in ProgressBar?

An indeterminate ProgressBar shows a cyclic animation without an indication of progress.

How do I use the ProgressBar in Winforms?

To create a ProgressBar control at design-time, you simply drag a ProgressBar control from the Toolbox and drop onto a Form in Visual Studio. After you the drag and drop, a ProgressBar is created on the Form; for example the ProgressBar1 is added to the form and looks as in Figure 1.

How do I set ProgressBar value?

You can update the percentage of progress displayed by using the setProgress(int) method, or by calling incrementProgressBy(int) to increase the current progress completed by a specified amount. By default, the progress bar is full when the progress value reaches 100.

How does ProgressBar work in C#?

A progress bar is a control that an application can use to indicate the progress of a lengthy operation such as calculating a complex result, downloading a large file from the Web etc. ProgressBar controls are used whenever an operation takes more than a short period of time.


1 Answers

Set the Style on the ProgressBar to Marquee

like image 173
Tom Studee Avatar answered Sep 30 '22 10:09

Tom Studee