473,473 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

opening an application from another application in the same solution

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
Feb 15 '08 #1
4 1007


"BillE" wrote:
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();
p.Start("<path to an executable>");
>
Feb 15 '08 #2
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
"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:6B**********************************@microsof t.com...
>

"BillE" wrote:
>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();
p.Start("<path to an executable>");
>>

Feb 15 '08 #3
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.

"BillE" wrote:
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
"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:6B**********************************@microsof t.com...


"BillE" wrote:
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();
p.Start("<path to an executable>");
>


Feb 16 '08 #4
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.

"Family Tree Mike" wrote:
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.

"BillE" wrote:
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
"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:6B**********************************@microsof t.com...
>
>
"BillE" wrote:
>
>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();
p.Start("<path to an executable>");
>
>>
>>
Feb 16 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
3
by: Giuseppe D'Elia | last post by:
Hi there, I got a problem using an MS Access database through ASP.NET. After updating my system from .NET Framework 1.0 to 1.1, my existing application gives me the following error when...
2
by: Matt Hamilton | last post by:
I have an application page with a datagrid with a checkbox on each row. The user should check the rows they want to modify and then click a button. When the button is clicked, I have a Click...
1
by: PK9 | last post by:
I am receiving the following error in Visual Studio 2003: "the web server reported the following error when attempting to create or open the web project HTTP/1.1 403 Access Forbidden" I am...
1
by: sunil | last post by:
Hi all, I have a web application in which I have to open a "chm" file that exists on the local file system. I am able to open other files such as PDF, DOC files by writing the Response's output...
0
by: GroupReader | last post by:
We have a shared solution that is in VSS. The solution contains several projects in addition to the main website "project". The solution seems to work fine. All developers can open the solution...
15
by: anon | last post by:
I have a page where the ASP script create a table of links i.e. 1 = NextPage.asp?Item=1 2 = NextPage.asp?Item=2 etc What I would like to do is open an new window with this link without any...
0
by: janders468 | last post by:
Hi, I have been messing around with automating Access (I am attempting to actually manipulate the Access objects themselves so it requires going beyond data access) from a c# program (long story...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.