我需要幫助創建一個線程,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