Except doevent()
is another way that, in this infinite loop run another control in form.
I wanted to do it with backgroundworker, but I failed.
private void button1_Click(object sender, EventArgs e)
{
while (true)
{
Application.DoEvents(); //how i can use the backgrondworker in this place
}
}