110,546
社区成员
发帖
与我相关
我的任务
分享
delegate void RefreshForm(string s);
//主线程外操作界面的方法
private void AddList(string s)
{
if (listBox1.InvokeRequired)
{
Invoke(new RefreshForm(AddList), s);
}
else
{
listBox1.Items.Insert(0, s)
}
}