Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I open a third party app in my Button click.
For Eg: Open photoshop, or a game in my Forms Button Click. Is It Possible?
Posted
Comments
[no name] 8-Aug-14 7:48am    
Yes it is possible.
victowork 8-Aug-14 8:19am    
give me the codes man
[no name] 8-Aug-14 8:22am    
"give me"?!? Rude much? No we don't write code order here. The only possible answer to your question of "Is It Possible?" is "Yes it is possible". If you want better answers, ask better questions.
victowork 8-Aug-14 8:29am    
not thanks got it.
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = false;
// You can start any process, HelloWorld is a do-nothing example.
myProcess.StartInfo.FileName = "C:\\HelloWorld.exe";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();

1 solution

Look here: Process class[^] However you probably want to open a file with it. Often it is sufficiant to provide the filename as an argument (as you would do in a cmd window), but that depends on the application itself.

May I suggest to test this first with something like notepad. Then try to open a file with notepad by providing the filename (including the path) and then check other applications.

Hope this helps.
 
Share this answer
 
Comments
victowork 8-Aug-14 7:59am    
can you please send me the codes
V. 8-Aug-14 8:04am    
the code is in the link provided, from there you can find out how it works.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900