-
Hi everyone,
I'm trying to make an application that will be able to perform few tasks in the same time. To keep it simple, let's say, for example, filling 2 listboxes in one form with 10000 items each. This two processes must run without one delaying the other.
Since filling them will take time, I'd like them both to be filled the same time withount waiting for the first one to to complete adding the items.
I tried using timers with the DoEvents command which each one called a procedure for filling one listbox. But, when the second timer is activated, filling of the first listbox is paused until filling of the second listbox is completed, and then filling of the first one is resumed.
Anyway to make it work ?
Thanks,
Ben
-
True Mu8ltitasking in Vb is extremly hard. I'd suggest that instead of your 2 proeedures you have one big proceture which handles doing both simultainiusly by adding items to lists alternatly, and have a doevents in here to keep your program going smoothly.
-
I agree with Sam here.
I had a look into Mult threading, and unless you want to get your hands very dirty with AcitveX, then i would try what Sam suggested.