I'm primarily a web developer but have to dip into a few windows apps now and again as I am currently the only .net developer in my team.

A former collegue of mine used the following snippet very frequently:
Code:
for(int i=0;i<10;i++)
{
    Application.DoEvents();
}
From my understanding Application.DoEvents tells windows to process all messages currently in it's queue so what is the benefit of looping it 10 times?