how to start another application with c#?
sayclicking the button to start Visual studio .net
thanks for help
Printable View
how to start another application with c#?
sayclicking the button to start Visual studio .net
thanks for help
Try this
Make sure you have the using System.Diagnostics namespace referenced.Code:Process.Start("notepad.exe");
Note: if the program is not in the startup path, you will have to provide the full path to the program.
d'I need the complete path eg. C:\\Program Files\\...
???
Thx for help! :)
YesQuote:
Originally posted by session
d'I need the complete path eg. C:\\Program Files\\...
???
Thx for help! :)
ill try it in a bit. thanks! :)
in case you are not aware you need to be able to access the Process function in the first place , the easiest way is to put this at the top of your code page : using System.Diagnostics;
eg:
Code:using System.Diagnostics;
//// top of form's code page.
////
public Process processToStart =new Process();
private void button1_Click(object sender, System.EventArgs e)
{
processToStart.StartInfo.FileName="IEXPLORE.exe";
processToStart.StartInfo.Arguments="http://google.com";
processToStart.Start();
}
}
ok. thanks :)
but...
what do these do:
switch(twinsOnWay)
{
case ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way);
break;
}
thats my signature , my wife and i are expecting twin babies very soon :)
awwwwwwwwwww nice! :) I love twins! :D but im only 16 :p