Progress Bar in C#

How to use the progress bar in a windows form?
Drag down a progress bar, a button and a timer. Now click on the button and write the 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.