VB.NET - Code Samples - App.path in vb.net

VB.NET Application Path Function


VB.NET does not contain the app.path function found in vb6.

The Solution:

There are several different ways to get the application path for vb.net application. Listed below is code to return the application path of a vb.net project with a UI (as it uses the System.Windows.Forms Library).

The Code:

	Private Function AppPath() as String
		return System.Windows.Forms.Application.StartupPath
	End function
About this page: