Question Help!!

Status
Not open for further replies.

val5662

New member
Joined
Oct 21, 2012
Messages
1
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("iexplore.exe"); will not work , but it does work to open internet explorer.
I appreciate any help you can give me.
Thanks!
Val
 
That is C# code and this is a VB-specific forum. If you go to the top of the page you will find a link to our C# sister site, which would be the appropriate place to post your C# questions.
 
Status
Not open for further replies.
Back
Top