Here I will teach you how to work with progress bar control. In 1st part I will show you how to fill progress bar by clicking button control. It's very easy and you should try it.
All you have to know is next:
1. How to drag and drop button and progressBar control on your form
2. To put next code inside button:
this is really easy and here is how it should be when it's finished
All you have to know is next:
1. How to drag and drop button and progressBar control on your form
2. To put next code inside button:
private void button1_Click(object sender, EventArgs e)
{
progressBar1.Minimum = 0;
progressBar1.Maximum = 100;
progressBar1.Step = 10;
progressBar1.PerformStep();
}
this is really easy and here is how it should be when it's finished
No comments:
Post a Comment