How To Start And Stop A Continuously Running Background Worker Using A Button
Posted
by Soo
on Stack Overflow
See other posts from Stack Overflow
or by Soo
Published on 2010-06-17T21:15:43Z
Indexed on
2010/06/17
21:33 UTC
Read the original article
Hit count: 143
Let's say I have a background worker like this:
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
while(true)
{
//Kill zombies
}
}
How can I make this background worker start and stop using a button on a WinForm?
© Stack Overflow or respective owner