File execution from .NET

  • Thread starter Thread starter Tamir Khason
  • Start date Start date
System.Windows.Forms.Button button = new System.Windows.Forms.Button();

button.Click += new EventHandler(btnClick_Handler);

private void btnClick(object sender, EventArgs e)
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.Start("myapp.exe");
}
 
tnx,\
Already got it :)


Vadym Stetsyak said:
System.Windows.Forms.Button button = new System.Windows.Forms.Button();

button.Click += new EventHandler(btnClick_Handler);

private void btnClick(object sender, EventArgs e)
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.Start("myapp.exe");
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top