private void button1_Click(object sender, EventArgs e)
        {
            timer1.Interval = 100;
            timer1.Enabled = true;
            timer1.Start();
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (progressBar1.Value >= 100)
                progressBar1.Value = 0;
            else progressBar1.Value = progressBar1.Value + 10;
             Application.DoEvents();
        }

解决方案 »

  1.   

    请问你button1绑定button1_Click了没?
      

  2.   

    designer.cs里面增加
    // timer1
                // 
                this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
    就可以了,这是个什么情况?
      

  3.   

    这是你没加委托啊,Timer里的事件没写上吧
      

  4.   

    这是你没加委托啊,Timer里的事件没写上吧有这个的话就不用加那句话了
      

  5.   

    这是你没加委托啊,Timer里的事件没写上吧有这个的话就不用加那句话了确实是这里的问题。多谢!