Asynchronus programming

I have a project which has a very slow process in a part,which doesn't need to have finished in order for the program to continue.So i wish to find a way in order to keep this process running without halting the other code.

At first i thought of using an activeX Exe,but i am not so very familiar with it and it keeps running as a modal process,which halts the rest.

Any ideas?
Who is Participating?
mladenoviczConnect With a Mentor Commented:
You can use ActiveX with timer and you will get "Asynchronous" execution.
Looking for answer
That's called multithreading, which is not really possible in VB
If you don't have to wait for it to finish, why not make it a separate programme and launch it with as Shell command/
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

well you can do this by using ActiveX EXE which makes different process and std exe continue execution.

or u can use doevent, i donot know more about this ....... hope this will solve ur problem.

Amit JAin
I meant ActiveX EXE with timer
You can use timer but this will check for the out put.

but u can use rais event from your exe that u catch in ur std exe.

Amit Jain
Have you tried speeding up the " very slow process" instead?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.