Link to home
Start Free TrialLog in
Avatar of Amitabh
Amitabh

asked on

is it possible to have multi-threading in vb

Is it possible to have multi threading in VB
can u plz suggest an example....

Regards
Avatar of CJ_S
CJ_S
Flag of Netherlands image

VB itself has no multithreading. However you can use the Win32 API's to create a new thread and use it. I do not recommend using it though.

Look for CreateThread

Public Declare Function CreateThread Lib "kernel32" Alias "CreateThread" (lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal dwStackSize As Long, lpStartAddress As Long, lpParameter As Any, ByVal dwCreationFlags As Long, lpThreadId As Long) As Long


CJ
ASKER CERTIFIED SOLUTION
Avatar of Ber
Ber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Éric Moreau
VB.Net is supporting multi threading natively.
Avatar of Amitabh
Amitabh

ASKER

thanks and sorry for having taken lot of time. i was held up with some office work.

regards,
A.Pandey
Cheers...
Ber...