Hi everyone...

Iam new to VB, i want to know whether we have thread option in VB if so how can v implement that(Sample codes are appreciated). Right now iam using sleep but that ll not make it effecient so i need to implement thread concept...


Iam working in setup creation using VB6, in that i need to invoke certain exe files by clicking Install CommandButton. After installing, the commandbutton should be disabled and UnInstall CommandButton should enabled. Moreover 2 or more exe files may invoke by a single click, thats y i think to call thread for each exe....

Will it work? How can i solve this??

Thanks in advance... Sample codes are appreciated...

9 Years
Discussion Span
Last Post by vb5prgrmr

Iam working in setup creation using VB6

I take it you're trying to write a program that will install or setup your program? That's pretty difficult to achieve with vb6 language alone and probably the easiest route is to use some Window APIs to achieve your goals.

Use the ShellExecuteEx API and extract the process handle for the exe that you wish to run.

Use the WaitForSingleObject API on that process handle.

And then use the CloseHandle API to close the handle

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.