start a process when a activity loads/threading

dougc

Member
Licensed User
Longtime User
Hi all,
I am trying to figure out the best way to load an activity and have it start running automatically, basically the method goes into an infinite loop (by design) updating @22 labels (basically a binary clock) after computing whether each label should be a one or zero. The method works fine but I had to add a "start" button and at times the GUI is a bit choppy (after computing each label I have a doevents call (to catch any new messages in the queue) but I am wondering if it would not be better to use a thread instead?

any thoughts/suggestions/ideas welcomed

thanks

sign0163: dougc
 

ukimiku

Active Member
Licensed User
Longtime User
I can imagine that, especially since you are making a clock, a timer would be a good way of updating the time displayed.

And I think that you can launch it by calling your custom sub (that sets up the timer) from within the predefined "Sub Activity_Create".

Regards,
 
Upvote 0

dougc

Member
Licensed User
Longtime User
great idea thank you very ,much!

fyi

this is probably the BEST forum I have ever joined, this forum alone is almost worth the price of the software

dougc
 
Upvote 0
Top