G
Guest
Hello
I need to get access to the project path (Project Folder location) at both design time and runtime.
The following command will get me the path at runtime
System.Reflection.Module mod = System.Reflection.Assembly.GetExecutingAssembly().GetModules () [0];
string sPath = System.IO.Path.GetDirectoryName(mod.FullyQualifiedName)
However, at design time, it returns a path to Documents and Settings ... My Documents\Visual Studio Projects ... which is not the same as the Project Folde
I tried using the App.config file to store it, but it came up blank
Any way to get the application path at design time
Thanks
-Joh
I need to get access to the project path (Project Folder location) at both design time and runtime.
The following command will get me the path at runtime
System.Reflection.Module mod = System.Reflection.Assembly.GetExecutingAssembly().GetModules () [0];
string sPath = System.IO.Path.GetDirectoryName(mod.FullyQualifiedName)
However, at design time, it returns a path to Documents and Settings ... My Documents\Visual Studio Projects ... which is not the same as the Project Folde
I tried using the App.config file to store it, but it came up blank
Any way to get the application path at design time
Thanks
-Joh