Multithreading in VB6

Hi All

I have VB6 application.  Now I needed to incorporate multi threading procedure.  Can any one help me to find the multi threading sample code?

Ultimately I want to make two wide (lengthy) images scrolling from right to left.  Please download the sample activex components which do the same.  URL: http://www.megsoft.co.in/downloadfiles/scroll.zip But the problem is it would not support images to scroll and it will not rise any event when scrolling is completed.  

I need to do this asap.  Please help me!

Thanks
Sundar
sundar_amuAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dirk HaestProject managerCommented:
VB6 (and earlier) does not have direct support for free threading, and in fact, because of restrictions in the runtime, free threading of VB6 components is not possible. What VB6-authored components do have access to is apartment-model threading. In fact, a VB exe that attempts to run no additional tasks outside its own execution thread is said to be in a STA, or Single Threaded Apartment, execution space. When VB apps do spawn multiple simultaneous execution paths they are said to occur in an MTA, or Multi-Threaded Apartment.
For more information on Threading in VB6 see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98
/html/vbconapartmentmodelmultithreadinginvisualbasic.asp

Another usefull resource
A Thread to Visual Basic: Multi-Threading In VB5 and VB6
http://www.freevbcode.com/ShowCode.Asp?ID=1287

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.