Thread thread = new Thread(new ThreadStart(delegate
            {


                for (int i = 0; i < 100; i++)
                {
                    this.Invoke(new MethodInvoker(delegate
                    {
                        if (i == 99)
                        {
                            this.label1.Visible = false;
                            this.label1.Refresh();


                        }
                        this.label1.Text = i.ToString();
                        this.label1.Refresh();
                    }));
                }
            }));
            thread.IsBackground = true;
            thread.Start();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案