我需要帮助创建一个 C# 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文档不好用时应该怎么办
Start()
的返回类型为void... - Jon Skeet