PSN-L Email List Message

Subject: Re: Simple VB question ?
From: "Mauro Mariotti" mariotti@.........
Date: Sat, 30 Mar 2002 20:29:58 +0100


Hi Casey,
you can use the "Doevents" instruction.
This tell to VB to process the event in the FIFO queue of Windows.
You can place a "doevents" instruction where you think is better.
I suggest to don't perform a doevents as quick as possible but 
use it very rarely inside your loop. 

I worked a lot with "seismowin" to these problems.

Regards
Mauro
www.infoeq.it

----- Original Message ----- 
From: "Casey J Crane" 
To: 
Sent: Saturday, March 30, 2002 8:19 PM
Subject: Simple VB question ?


> 
> Hi all,
>         I know this isn't the exact forum for this question but someone
> in the PSN always seems to have an answer.
> 
>         I'm experimenting with a simple SG sensor and have built an 8 bit
> A/D convertor to interface through my Lpt port. I slapped together a
> Quick Basic program to run it and plot it. Works fine. Now I'm laboring
> with Visual Basic to achieve better results. But I've hit a snag to which
> the answer is probably simple though it eludes me.
> 
>         How do I effect a button click while the program is in a loop
> type subroutine ?
> 
>         Here's the scenario; one Form, two Buttons (Start/Stop) I click
> the Start button and this sends the program flow to a
> loop type subroutine. It's a long loop, counting to a few hundred K.
> While in the loop I cannot click any button. Only until the loop
> conditions are met and the sub ends. I can't even click the Form Close
> button.
> 
>         How can I access buttons (or other objects) while the program is
> pre occupied with these other little tasks ?
> 
>         Any Ideas ?
> 
>         Thanx, Casey
> 
> ________________________________________________________________
> GET INTERNET ACCESS FROM JUNO!
> Juno offers FREE or PREMIUM Internet access for less!
> Join Juno today!  For your FREE software, visit:
> http://dl.www.juno.com/get/web/.
> __________________________________________________________
> 
> Public Seismic Network Mailing List (PSN-L)
> 
> To leave this list email PSN-L-REQUEST@.............. with 
> the body of the message (first line only): unsubscribe
> See http://www.seismicnet.com/maillist.html for more information.
> 

__________________________________________________________

Public Seismic Network Mailing List (PSN-L)


[ Top ] [ Back ] [ Home Page ]