Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ resources

1. Windows Forms Deployment

1.9 How do I get the path to my running EXE?


The Application class has a static member ExecutablePath that has this information.

[C#]
     textBox1.Text = Application.ExecutablePath;

[VB.NET]
     TextBox1.Text = Application.ExecutablePath