This is quite the little snippet, it has some magic numbers that could be disassociated pretty easily. If it were in a `delay` helper function, sure, but this snippet was pulled mid-function.
```csharp
msToWait = 10 * 1000;
timesToWait = msToWait / 100;
for (int i = 0; i < timesToWait; i++)
{
Thread.Sleep(100);
Application.DoEvents();
}
```
_This is a page in the collection of [[Chip Overflow/Willies|snippets that give me the willies]]_