VB How-ToAsk your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Anyone know a better way to suspend execution of VB code until an activex control responds and the event is handled other than using a loop with a doevents statement in it. Such a loop seems to be slowing my application significantly. Thanks.
I think this wouldn't really slow an app much. Windowsâ "event-driven" interface is a continuously running loop. If your code is not looping, Windows is. Either way, there is repetitive looping taking place all the time.
It is possible that you have a loop that is designed in a way that is in fact slowing things, but the general idea doesn't seem to me to be necessarily a slowing way of doing thingsâI think...