Phil,
But only if you really need to. Correct.
DoEvents is a VB thing, and only included in
VB.NET for compatability.
Totally false, DoEvents is a Windows Forms thing! Hence it being part of the
System.Windows.Forms.Application class.
It allows your program to invoke the Windows Forms Message Pump. the Message
Pump is a Win32 feature that allows your app to remain responsive to windows
messages. It converts Win32 messages into Windows Forms events.
Useful when you have an event handler that is taking too much time.
But only if you really need to.
You need to be careful as DoEvents will allow your event handlers to be
reentered, for example if you call it while handling the Button1.Click
event, you could cause a second Button1.Click event to be handled at the
same time (assuming the user pressed button1 twice), this may cause
unexpected or undesired behavior in your app.
Hope this helps
Jay