Friday, 25 April 2014

How to use progressBar and button in window appliaction


Here i will explain how to use progress Bar in window application.

Drag and down a progress Bar and a button and a timer from tool box.
Double click on progress bar and timer and write this code.
private void btnprogress_Click(object sender, EventArgs e) 

Now double click on timer

private void timer1_Click(object sender, EventArgs e) 

We can also control the speed of the interval by a timer property.

Run your application and click on button.

No comments:

Post a Comment

C# program Selection Sorting

Selection sort is a straightforward sorting algorithm. This algorithm search for the smallest number in the elements array and then swap i...