I made a simple ActiveX exe to do a time consuming task, ie printing.

I made an ActiveX exe class MyClass with a function called LongtimeTask(). The ActiveX Object is set for Multiusers.

In my client code, I have following code

Code:
 Private MyObj As Object
 
 Private Sub Form_Click()

      Set MyObj = CreateObject("MyProject.MyClass")
      MyObj.LongtimeTask  'takes long time!!!
      Print MyObj.MyString
   End Sub
When I run the code, only after "MyObj.LongtimeTask" function is finished, the next line code "Print MyObj.Mystring" is executed. It performs like a single thread process. What could be wrong? What I want is to start LongtimeTask and immediately return to client code to execute next line code.

This is my first try making ActiveX exe, Thanks for your help!