val5662
New member
- Joined
- Oct 22, 2012
- Messages
- 4
- Programming Experience
- Beginner
Hi All....
I am a beginner at writing code and I am trying to make a windows form application in the "SharpDevelop 4.2" program.
The program is very similar to "Visual Studio 10 Ultimate".
The program I am trying to make is a simple "click a button" to start a program ( Game exe ) on my C drive.
I Googled it and could not find the code I need.I am just stumped on one part of the code.
Here is where I need the correct code:
}
void Button2Click(object sender, EventArgs e)
{
//to start the application below,what goes in front of the ("C:\etc...etc...?
//and also is the ("C:\Sierra\Viper Racing\Viper Racing.exe");
// the correct way of starting the exe?
("C:\Sierra\Viper Racing\Viper Racing.exe");
//and is the Close code below correct to exit the form.exe after the button is clicked to start the Viper Racing.exe?
Close();
}
}
}
Note: "Process.start" does not exist in the options I have
also System.Diagnostics.Process.Start("C:\Sierra\Viper Racing\Viper Racing.exe"); will not work , but it does work to open internet explorer ("iexplore.exe");.
I appreciate any help you can give me.
Thanks!
Val
I am a beginner at writing code and I am trying to make a windows form application in the "SharpDevelop 4.2" program.
The program is very similar to "Visual Studio 10 Ultimate".
The program I am trying to make is a simple "click a button" to start a program ( Game exe ) on my C drive.
I Googled it and could not find the code I need.I am just stumped on one part of the code.
Here is where I need the correct code:
}
void Button2Click(object sender, EventArgs e)
{
//to start the application below,what goes in front of the ("C:\etc...etc...?
//and also is the ("C:\Sierra\Viper Racing\Viper Racing.exe");
// the correct way of starting the exe?
("C:\Sierra\Viper Racing\Viper Racing.exe");
//and is the Close code below correct to exit the form.exe after the button is clicked to start the Viper Racing.exe?
Close();
}
}
}
Note: "Process.start" does not exist in the options I have
also System.Diagnostics.Process.Start("C:\Sierra\Viper Racing\Viper Racing.exe"); will not work , but it does work to open internet explorer ("iexplore.exe");.
I appreciate any help you can give me.
Thanks!
Val