VB.NET - Code Samples - App.path in vb.net 2005
VB.NET 2005 Application Path Function
Synopsis:
VB.NET 2005 does not contain the app.path function found in vb6.
The Solution:
VB.NET 2005 has simplified many routine programming tasks using the My Class. One of its functions includes returning the application executable directory location. (Looking for the code to do this in prior version of VB.net? Go Here)
The Code:
Dim value As String = My.Application.Info.DirectoryPath