Multithreading in VB6

Posted on 2008-11-15
Last Modified: 2013-11-27
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: 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!

Question by:sundar_amu
    1 Comment
    LVL 53

    Accepted Solution

    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:

    Another usefull resource
    A Thread to Visual Basic: Multi-Threading In VB5 and VB6

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now