我需要帮助创建一个线程,C#的WinForms如何在WinForms中创建线程?
private void button1_Click(object sender, EventArgs e) {
Thread t=new Thread(new ThreadStart(Start)).Start();
}
public void Start() {
MessageBox.Show("Thread Running");
}
我不断收到这样的信息:
Cannot implicitly convert type 'void' to 'System.Threading.Thread
做什么的MSDN文档是没有好
尤其MSDN文档表明,'开始的返回类型()'是无效... – 2009-08-21 07:05:33