Path Question

  • Thread starter Thread starter Diarmuid
  • Start date Start date
Diarmuid said:
How would I get the path of my program?

Either add a reference to "System.Windows.Forms.dll" and import the
'System.Windows.Forms' namespace in order to use 'Application.StartupPath'
or use the code below:

\\\
Imports System.IO
Imports System.Reflection
..
..
..
Private Function ApplicationPath() As String
Return _
Path.GetDirectoryName([Assembly].GetEntryAssembly().Location)
End Function
///
 

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

Similar Threads

ListView Sorting 1
Tree Node - Expanded? 2
Status Bar Panel Sizing 1
Imagelist - TransparentColor 2
Object Datasource 1
Intro VB2005 Code 3
Control Arrays Question 5
Bin and Obj Folders 4

Back
Top