© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
34 replies
Jana ♡

❔ Proplem in process start

im using the code :

private void button1_Click(object sender, EventArgs e)
{
string Game = @"C:/TrexLauncher (the House Of The Dead 2)/Launcher/Game/The House of The Dead 2/Hod2.exe";
Process.Start(new ProcessStartInfo { FileName = Game, UseShellExecute = true });
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
string Game = @"C:/TrexLauncher (the House Of The Dead 2)/Launcher/Game/The House of The Dead 2/Hod2.exe";
Process.Start(new ProcessStartInfo { FileName = Game, UseShellExecute = true });
this.Close();
}


Hod2.exe (The House of the dead 2 game) must be opened but it only crashes ; /

but when i run the game without the button1 it works well
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

process start
C#CC# / help
2y ago
✅ Start process in dir - solved
C#CC# / help
14mo ago
[Repost] Process start
C#CC# / help
4y ago
✅ Process.Start("Something"); Crashes
C#CC# / help
3y ago