Hi all,
I've a Windows application.It has some complex background task to do when a button is clicked.
When i read the MSDN it says that Application.DoEvents will allow the Windows Forms application to process other events when the complex background task is executing.
I know i can create a Thread to put by background task.
I wonder what are the differences between these 2 approaches When to use what Does Application.DoEvents create threads internally to process application events
Thanks,
Suresh.

Application.DoEvents Vs New Thread
Truc Nguyen
If you have a huge background task and call Application.DoEvents() only after big chunks of work your apllication's response will seem somewhat choppy. Thus I'd rather recommend you to use a secondary thread for doing your work if the task is rather complex.