Re: DoEvents() "Hangs"

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 3 Aug 2006 13:36:40 -0700, cedmunds@xxxxxxx wrote:

All helpful thoughts and suggestions (not the snarky ones about "Do
people really still use DoEvents() (is it even valid in C#?).") are
appreciated.

That may have been snarky but it was absolutely correct.
Do not use DoEvents, ever! There is never a good reason to have the
operating system perform unpredictable reentrant calls on the current
GUI thread -- because that's exactly what DoEvents does.
--
http://www.kynosarges.de
.