<p>How do I get my C# program to sleep (pause execution) for 50 milliseconds?</p>

```
```
System.Threading.Thread.Sleep(50);
```
```
Remember though, that doing this in the main GUI thread will block your GUI from updating (it will feel "sluggish")
Just remove the
```
;
```
to make it work for VB.net as well.