A Ash Phillips Oct 23, 2004 #1 Is there any alternative to App.Path in VB .NET? Also App.Major/Minor/Revision? Thanks in advance!
K Ken Tucker [MVP] Oct 23, 2004 #2 Hi, Application.StartupPath, Application.Version. Application does not alway return the right result. Here is what i use. Public Function AppPath() As String Return System.IO.Path.GetDirectoryName(Reflection.Assembly.GetEntryAssembly().Location) End Function Ken -------------------- Is there any alternative to App.Path in VB .NET? Also App.Major/Minor/Revision? Thanks in advance!
Hi, Application.StartupPath, Application.Version. Application does not alway return the right result. Here is what i use. Public Function AppPath() As String Return System.IO.Path.GetDirectoryName(Reflection.Assembly.GetEntryAssembly().Location) End Function Ken -------------------- Is there any alternative to App.Path in VB .NET? Also App.Major/Minor/Revision? Thanks in advance!
J james Oct 23, 2004 #3 Also don't forget to use: Imports System.IO Imports System.Reflection It seems if I leave those two out I end up with problems. Otherwise, Ken's suggestion seems to work the best of all solutions . james
Also don't forget to use: Imports System.IO Imports System.Reflection It seems if I leave those two out I end up with problems. Otherwise, Ken's suggestion seems to work the best of all solutions . james