for(i:1-n) { doSomeThing(); Thread.Sleep(3000); // wait a bit }
while(run) // a global boolean which you can set to false to end the loop { doSomething(); Thread.Sleep(3000); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)