Application.DoEvents

  private void button1_Click(object sender, EventArgs e)
        {
           Application.DoEvents();
            this.label1.Text = "步骤1";
            Application.DoEvents();
            System.Threading.Thread.Sleep(5000);

           Application.DoEvents();
            this.label1.Text = "步骤2";
            Application.DoEvents();
            System.Threading.Thread.Sleep(5000);

           Application.DoEvents();
            this.label1.Text = "步骤3";
            Application.DoEvents();
            System.Threading.Thread.Sleep(5000);

            Application.DoEvents();
            this.label1.Text = "完成";
            Application.DoEvents();
          
        }

posted on 2008-06-12 22:17  优雅小猪  阅读(632)  评论(0编辑  收藏  举报

导航