2011-02-02 96 views
0

除了doevent()是另一種方式,在此無限循環中運行另一種形式的控件。無限循環中的backgroundworker

我想用backgroundworker做,但我失敗了。

private void button1_Click(object sender, EventArgs e) 
    { 
     while (true) 
     { 
      Application.DoEvents();   //how i can use the backgrondworker in this place 
     } 
    } 

回答

1

的問題和樣品混亂給我,但我想你問的是如何使用的BackgroundWorker類。

這個類的Documentation是相當有用的,並有示例代碼底部。