2019.06.03-简单线程
作者:互联网
private void main()
{ private delegate void MyInvoke(); Thread th = new Thread(new ThreadStart(selectThread)); th.IsBackground = true; th.Start(); } public void selectThread() { GridViewDataBind.select(str, ref d, ref d_copy, ref pageCount, ref pageSize, ref page); if (d == null) { MyInvoke m = new MyInvoke(enable); if (this.InvokeRequired) { this.BeginInvoke(m); } return; } } private void enable() { MessageBox.Show("Data Reading Error!"); button1.Enabled = true; }
标签:03,MyInvoke,void,private,2019.06,线程,th,new,ref 来源: https://www.cnblogs.com/zqyyx/p/10967981.html