0

除了doevent()另一种方式,在这个无限循环中以形式运行另一个控件。

我想和后台工作人员一起做,但我失败了。

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

1 回答 1

1

问题和示例让我感到困惑,但我认为您要问的是如何使用 BackgroundWorker 类。

此类的文档非常有用,并且底部有示例代码。

于 2011-02-02T00:27:34.730 回答