Games Using C#
Submitted by tamizhventhan on Monday, September 30, 2013 - 18:54.
Games selection using c#.Net
A simple project to play the games in win xp.
for this purpose we use a class called process in c sharp.
Create a form with Picture Boxes
Add relevant picture to that picture boxes and double click.
Write the code below like this to run the programs
first of all define a string and assign the string with the path of the application you want to run.
- string str = @"c:\Windows\system32\spider.exe"; <csharp>
- and the define the class process .
- This needs <csharp>using System.Diagnostics;<csharp> namespace.
- Assign the string with this process
- <csharp>process.StartInfo.FileName = str;<csharp>
- start the process
- <csharp> process.Start();<csharp>
- That's all your App Ready to run the programs Integrated.
- How to find the program name and saved path:
- Just right click on the program select properties copy the target text box values for the path of the application .
Add new comment
- 102 views