Srivastava
Srivastava

Reputation: 3578

Applying progress bar to the winform on button click

Can anyone guide me to how can I apply a distinct progress bar in my winform on the click of a button

Upvotes: 0

Views: 2615

Answers (1)

user415789
user415789

Reputation:

private void button1_Click(object sender, EventArgs e)
{
    ProgressBar p = new ProgressBar();
    p.Location = new Point(10, 10);
    p.Size = new Size(100, 30);
    this.Controls.Add(p);
}

Upvotes: 3

Related Questions