pls i need to control my progress bar relative to the page, but i'm having problems... i tried this:

  private void staffToolStripMenuItem_Click(object sender, EventArgs e)
        {
            progressBar1.Maximum = 1000000;
            progressBar1.Step = 1;

            for (int j = 0; j < 1000000; j++)
            {

                progressBar1.PerformStep();
            }
            Registration frm2 = new Registration();
            frm2.Show();
            this.Hide();
        }      


    can someone help me????????????

Recommended Answers

All 2 Replies

What problems?

commented: the progress bar is not working, it's appearing loading... but i need it to start loading when the user click the toolstrip... +0

you should post more code because this seems ok, when you click on your tool item it will just go to the maximum, though i m not sure about your registration class this class as i ve searched google doesn t exist (it s not in the library) as i can see

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.