For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Enterprise > September 2005 > Call a VB Project from another VB Project









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Call a VB Project from another VB Project
d_harry45

2005-09-27, 3:58 am

hi everyone...

Here, I want to ask is there any probability that one Visual Basic Project
can call another Visual Basic Project while the first one still running? If
that can be done, how it works? Can someone show/give an URL or example?

Thanks in advance.
Jan Hyde

2005-09-27, 3:58 am

d_harry45 <mfmz78@hotmail.com>'s wild thoughts were released
on Mon, 26 Sep 2005 20:23:02 -0700 bearing the following
fruit:

>hi everyone...
>
>Here, I want to ask is there any probability that one Visual Basic Project
>can call another Visual Basic Project while the first one still running? If
>that can be done, how it works? Can someone show/give an URL or example?


You can call ActiveX Exe and DLL projects, might be better
is you explaing exactly what your trying to achieve

Jan Hyde (VB MVP)

--
"My favorite statue is the Venus de Milo," said Tom disarmingly.

(Richard Lederer)

[Abolish the TV Licence - http://www.tvlicensing.biz/]

d_harry45

2005-09-27, 7:58 am

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..
Ken Halter

2005-09-27, 7:05 pm

"d_harry45" <mfmz78@hotmail.com> wrote in message
news:3C7D67CD-BCE5-4B35-A38C-2C7E4C0F4151@microsoft.com...
> 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..


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com