Friday, 25 April 2014

How to use progressBar and button in window appliaction


                                                                                                                                           Previous..
                                                                                                                                                 Next..

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

Step(1):Form
Drag and down a progress Bar and a button and a timer from tool box.
Step(2):Code
Double click on progress bar and timer and write this code.
private void btnprogress_Click(object sender, EventArgs e) 
{
    this.timer1.start();


Now double click on timer

private void timer1_Click(object sender, EventArgs e) 
{
    this.btnprogress.increment(1);


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




Step(3):Output
Run your application and click on button.
                                                                                                                                           Previous..
                                                                                                                                                 Next..

No comments:

Post a Comment

Paging in html table using javascript

I demonstrated how to use HTML tables on the client for a very simple client-side paging solution. I have heard from several people who p...