RIAS
asked on
Application.doevents
Hello,
Is there a better and faster way of Application.doevents
Thanks
Is there a better and faster way of Application.doevents
Thanks
in which scenario are you using DoEvents? That will never speed up an application, it will only give some time to other thread like the UI thread to update
ASKER
Thanks! Its mainly about when the screen is refeeshing
there isn't much you can do (other then calling DoEvents) or you need to introduce tasking
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Similar to other comments, I would recommend putting the intensive processing into another thread so you shouldn't need to call Application.DoEvents() at all. You could use a background worker, ThreadPool.QueueUserWorkIt em, task parallel library (aka async/await). I think async/await is probably the most familiar pattern for other programmers lately.
ASKER
Is system.windows.forms.appli cation.doe vents better ? than just Application.doevents?
The same.
ASKER
Thanks Andy!