|
-
Jun 6th, 2000, 08:30 PM
#1
Thread Starter
New Member
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
-
Jun 6th, 2000, 09:14 PM
#2
Frenzied Member
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.
-
Jun 6th, 2000, 09:33 PM
#3
Fanatic Member
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.
Iain, thats with an i by the way!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|