|
-
Jun 21st, 2003, 08:07 PM
#1
Thread Starter
Member
start another program in c#
how to start another application with c#?
sayclicking the button to start Visual studio .net
thanks for help
-
Jun 21st, 2003, 08:18 PM
#2
Frenzied Member
Try this
Code:
Process.Start("notepad.exe");
Make sure you have the using System.Diagnostics namespace referenced.
Note: if the program is not in the startup path, you will have to provide the full path to the program.
-
Jun 21st, 2003, 11:20 PM
#3
Thread Starter
Member
d'I need the complete path eg. C:\\Program Files\\...
???
Thx for help!
-
Jun 21st, 2003, 11:49 PM
#4
Frenzied Member
Originally posted by session
d'I need the complete path eg. C:\\Program Files\\...
???
Thx for help!
Yes
-
Jun 22nd, 2003, 01:31 AM
#5
Thread Starter
Member
ill try it in a bit. thanks!
-
Jun 22nd, 2003, 01:45 PM
#6
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();
}
}
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jun 22nd, 2003, 03:07 PM
#7
Thread Starter
Member
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;
}
-
Jun 22nd, 2003, 05:19 PM
#8
thats my signature , my wife and i are expecting twin babies very soon
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jun 22nd, 2003, 05:46 PM
#9
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|