Jump to content
xisto Community
Sign in to follow this  
Blackbelt012

How To Run A Process Through Your Program (c#)

Recommended Posts

Made by Blackbelt012

 

OK to start add a button or a menu strip to your form.

 

Posted Image

-----------------------------------

Then double click the button you just added and it will take you to the code of your application.

-----------------------------------

Next scroll to the very top of your form and add this code.

using System.Diagnostics;

Posted Image

-----------------------------------

Then scroll back down to the button you double clicked.

 

Posted Image

-----------------------------------

After that add this code.

Process.Start(@"C:\Program Files\Mozilla Firefox\firefox");
just switch the
C:\Program Files\Mozilla Firefox\firefox
to the path of the program you want to start.

 

Posted Image

-----------------------------------

Now if you want to test your program before you publish it hit the "F5" key and it will go into Debug Mode. Then just press the button and if done properly the program will open that you selected.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.