opening an application from another application in the same solution

  • Thread starter Thread starter BillE
  • Start date Start date
B

BillE

I have a solution with two windows forms projects in it.

I would like to be able to execute Project B from a button or menu in
Project A.

How can I do this?

Thanks
Bill
 
BillE said:
I have a solution with two windows forms projects in it.

I would like to be able to execute Project B from a button or menu in
Project A.

How can I do this?

Thanks
Bill

In the handler for the button, use System.Diagnostics.Process.Start.

Process p = new Process();
 
Thanks for the response Family Tree
Would that be the physical path to the compiled executable on the hard disk?
Wouldn't that vary depending on where the apps were installed on the user's
computer?

Bill
 
It can be the full or relative path. Typically when I use a solution with
two executables, I will create an installer that places the two executables
into a common bin directory. This makes the relative pathing easy, and I
just use "other.exe", or the like. I redirect the build output to a similar
directory structure on my build machine.
 
I'm thinking that's not quite right. I commonly use a registry key to find
the install\bin folder, and build a filename from that. Sorry about the bad
direction.
 
Back
Top