Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask 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
 
Old May 31st, 2007, 04:23 PM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to suspend code till Activex event is handled

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.
 
Old June 1st, 2007, 10:57 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

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...





Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you suspend constraints? Aaron Edwards SQL Server 2005 2 July 31st, 2006 12:16 PM
fired event Sorting which wasn't handled fantef ASP.NET 2.0 Basics 0 July 27th, 2006 10:05 AM
setting event handled to true sajid C# 3 April 27th, 2005 12:02 PM
Using an activex event with javascript cirudinezidane Javascript How-To 1 March 9th, 2004 06:49 AM
buggy event firing in ActiveX controls pgtips Pro VB 6 6 July 10th, 2003 02:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.