C#如何使用多线程(2)

                                                                                                                      //也即是向方法UpdateForm(string param1,string param2)

                                                                                                                      //传送数据
                    Thread.Sleep(1000);
                    iNo++;
                }
            }
        }
        public void UpdateForm(string param1,string param2)
        {
            this.textBox1.Text = param1 + param2;
            ListViewItem item = new ListViewItem(param1);
            item.SubItems.Add(param2);
            listView1.Items.Add(item);

        }

以上操作结束以后大家一下就会已经实现了多线程。

linux

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyzzwp.html