除了doevent()
另一种方式,在这个无限循环中以形式运行另一个控件。
我想和后台工作人员一起做,但我失败了。
private void button1_Click(object sender, EventArgs e)
{
while (true)
{
Application.DoEvents(); //how i can use the backgrondworker in this place
}
}