Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

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


1 reply to this topic

#1 Blackbelt012

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 12 August 2007 - 10:13 PM

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.

#2 JaypeeHuda

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 12 September 2011 - 11:38 AM

this is great one!!!!!!!!!!!
Here i am giving a simple example, how to start process using C#...
check out the following links.......
http://www.mindstick...with%20examples




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users