Hi vutle,

"Yes... That's the reason of using a doevents. It could be use to stop or cancel the loop without using thread. "

Understood. I suppose it depends on why the delay is required.