M Mike Labosh Nov 9, 2004 #1 I need the VB.NET equivalent to this, i.e. the path to the folder where my program lives.
H Herfried K. Wagner [MVP] Nov 9, 2004 #3 Mike Labosh said: I need the VB.NET equivalent to this, i.e. the path to the folder where my program lives. Click to expand... 'Application.StartupPath', or more general (can be used in DLL projects too): \\\ Imports System.IO Imports System.Reflection .. .. .. Private Function ApplicationPath() As String ' Use 'GetEntryAssembly' to get the path to the EXE. Return _ Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location) End Function ///
Mike Labosh said: I need the VB.NET equivalent to this, i.e. the path to the folder where my program lives. Click to expand... 'Application.StartupPath', or more general (can be used in DLL projects too): \\\ Imports System.IO Imports System.Reflection .. .. .. Private Function ApplicationPath() As String ' Use 'GetEntryAssembly' to get the path to the EXE. Return _ Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location) End Function ///