Skip to content

Call exe file by click button from window form.

kanagarajah thiagarajah

Asked Mar 20, 2007, 5:49 PM EDT3 answers
Share
LinkedInX
I need to link or call a exe file(or form) if i click the button.How is the method or coding.Please help me i'm in thouble now.TQ very much

private void button1_Click(object sender, EventArgs e)
{
???????
}
The exe file name is connection....Tq

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0
    Hi Krajah,

    The way to call an Exe file from your button handler is with the System.Diagnostics.Process class

    System.Diagnostics.Process.Start("connection.exe");

    best,

    -Mike



    Call exe file by click button from window form.
    Posted: 3/20/2007 9:49:11 PM
    I need to link or call a exe file(or form) if i click the button.How is the method or coding.Please help me i'm in thouble now.TQ very much

    private void button1_Click(object sender, EventArgs e)
    {
    ???????
    }
    The exe file name is connection....Tq

    Krajah
    0
  • 2 short replies