C# background worker while loop
- by Mike
What i'm trying to create is a background worker that executes a few processes every 30seconds. But I want this while loop to execute for as long as the program is launched. here is what I am using:
private void watcherprocess1()
{
backgroundWorker1.RunWorkerAsync();
}
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
while(
Thread.Sleep(30000);
specficView2();
makeFormlist2();
populateListview2();
}
My main issue is ai can think of a good while loop to keep this running