Advertisement

02.20.2008 at 09:41AM PST, ID: 23178430
[x]
Attachment Details

Not sure if I should use DoEvents or something similar in my code, need guidance.

Asked by troehm in Visual Basic Programming

Tags: Microsoft, Visual Basic, 6

Basically, I have a program that gets all the computer names on our domain, checks to see if it can ping them or not, and runs through the list check if certain software is installed (most of it's done using WMI). I've never really used DoEvents or anything. But I need to stop the process if needed. Ideally, I want to put a checkbox on the form and a condition on the next loop to see if it's checked or not and stop it if needed. Only problem is, when I run the process I have no way of even hitting that check box because the process is not letting me interact with the interface. All I hear about DoEvents being evil and some conditions on when not to use it. Is there something else I could use? I'm sure this is like the oldest trick in the book, but I never really had a need for it. Any guidance would greatly be appreciated. ThanksStart Free Trial
 
Keywords: Not sure if I should use DoEvents or so…
 
Loading Advertisement...
 
[+][-]02.20.2008 at 09:57AM PST, ID: 20940172

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Tags: Microsoft, Visual Basic, 6
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.20.2008 at 10:05AM PST, ID: 20940254

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 10:38AM PST, ID: 20940518

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 10:40AM PST, ID: 20940537

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628