Application start location [SOLVED]

  • 15 years ago
    How can I runtime read path of my aplication (application start folder)?

    I need this so I can set connection string (database location). application can be on different locations.

  • 15 years ago

    I found it,

    dim path as string
    path =System.Windows.Forms.Application.StartupPath()

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The difference between theory and practice is smaller in theory than in practice.”