Using a Progress bar and a click counter

Try this:

private void button1_Click(object sender, EventArgs e)
{
    if (progressBar1.Value < progressBar1.Maximum)
        progressBar1.Value++;
}

But note, you cannot set Value to a higher number than Maximum

Leave a Comment