Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run application in C#?

Status
Not open for further replies.

Jsd02

Programmer
Apr 21, 2002
12
EE
I want to run for example calculator when I click calculator button in my application, how to do that?
 
1) Have the .NET framework installed on the machine (either via the redistributable, or through Windows Update)

2) Double-click on the .EXE file in Explorer.

In other words, run it like any other application once the framework is installed.

Chip H.
 
hmmm...or you didn't understand me or I didn't understand you. Look I want to open standard win calculator (C:\winnt\calc.exe) when I press button in my application
 
Ooops. Sorry, I got your question the wrong-way `round.

Try this:
Code:
System.Diagnostics.Process MyProc = 
new System.Diagnostics.Process;

MyProc.EnableRaisingEvents = False;

MyProc.Start("Notepad.exe", "Readme.txt");

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top