Real beginners stuff

P

Paul Brownjohn

Is there a direct equivalent of the VB6 expression 'app.path' in the .NET
framework

Cheers

Paul
 
H

Herfried K. Wagner [MVP]

* "Paul Brownjohn said:
Is there a direct equivalent of the VB6 expression 'app.path' in the .NET
framework

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

The Grim Reaper

Imports System.Windows.Forms

vAppPath = Application.StartupPath()
_______________________________________
The Grim Reaper
 

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

Top