[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Launching an app from within my Winforms app

APA

8/26/2008 7:31:00 PM

I'm trying to launch another (WinForms) application from my WinForms app. I want it to work like launching an app from Explorer, i.e. I don't want my
app to have any ties to the app it launched. I've tried to use Process.Start but it doesn't see to be passing my command line parameter and if there
is already a running instance of the app it won't attempt to run it again. Is there any other way to launch an app from a WinForms app?
1 Answer

Mark Salsbery [MVP]

8/26/2008 7:46:00 PM

0

"APA" <buddy__a@hotmail.com> wrote in message
news:e2#y2I7BJHA.2476@TK2MSFTNGP06.phx.gbl...
> I'm trying to launch another (WinForms) application from my WinForms app.
> I want it to work like launching an app from Explorer, i.e. I don't want
> my app to have any ties to the app it launched. I've tried to use
> Process.Start but it doesn't see to be passing my command line parameter
> and if there is already a running instance of the app it won't attempt to
> run it again. Is there any other way to launch an app from a WinForms
> app?


Can you show example code that fails? Process.Start works fine for me.

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++