Re: Call a VB Project from another VB Project



"d_harry45" <mfmz78@xxxxxxxxxxx> wrote in message
news:3C7D67CD-BCE5-4B35-A38C-2C7E4C0F4151@xxxxxxxxxxxxxxxx
> Shell App.Path & "\JHEKS" & "\prjJheks.exe", vbNormalFocus
>
> Above is what currently i'm doing in my project. But this project i
> developed in standard EXE application. Is there any possibility that i can
> call another project just like using MDI form? Because, in the
> application,
> the user have to choose their deparment before they can login. But, in
> this
> case, i just found the solution that can call the .exe.. And when they
> exit
> the application, the first running project, still running and have to
> manually exit..
>
> Thanks in advance for your advice and i'm appreciate..

It won't be like MDI but here's code that shows how to.....

Wait For a Shelled Process to End Using WaitForSingleObject
http://www.thescarms.com/VBasic/wait.asp

Have you considered converting to an MDI app? Basically, place all the code
for that second project in an MDI Child form and just show the form when
needed.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..


.


Loading