zoukankan      html  css  js  c++  java
  • this.invoke

    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();
  • 相关阅读:
    jdk.jre.jvm 三者之间的关系?
    SQL7
    SQL6
    sql题
    sql题
    sql
    简说SQL题
    递归算法
    JAVA的简单描述
    第一篇技术博客
  • 原文地址:https://www.cnblogs.com/server126/p/2290633.html
Copyright © 2011-2022 走看看