What's the equivalant of DoEvents in VB.NET?
Printable View
What's the equivalant of DoEvents in VB.NET?
application.DoEvents
Thanks. One problem! I don't have an application object. I'm inside a library. What then?
it simply may not be possible with what you are doing.. you may need to look into using multiple threads instead.... unless someone else has a better answer
Threads are probably the way to go. But just a thought. Is the library yours to modify the code? If so, how about passing in the application object, then you can .DoEvents on it? Haven't tried, just a thought.
A component shouldn't call an application level command - why not run your time consuming code either asynchronously or in its own thread...