The Application class has a static member ExecutablePath that has this information.
[C#]
textBox1.Text = Application.ExecutablePath;
[VB.NET]
TextBox1.Text = Application.ExecutablePath
Home / FAQ / WinForms / Deployment / 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
Share with