Does anyone know how to do multithreading in VB6? For example, if I want to call a public function Process1()during form load, I want the form keep loading without waiting on Process1() to finish. Actually, I have a case the Process1() will be running during whole run time. It is like sth below:
Public Function Process1(arg1 as String)
do while True
......
loop
End Function
So, is there a way to use multithreading for this? I'd like to use it inside of the code, instead of creating an ActiveX.
Working sample code needed please.
Thanks!
hxia
have a look at
http://www.desaware.com/articles/threadingL3.htm
http://www.desaware.com/articles/Waitingl3.htm