Find Windows form path at design time
-
2008年11月27日 12:49
Hi,
I would like to know the way to find out physical path of project from Windows form at design time.
This form is added under same project.
I want to access XML file in project from windows form at design time.
Thanks and Regards,
Alok pandit
所有回覆
-
2008年11月27日 13:15
Hi Alok
The following code can retrieve the path when you are debugging your project,
System.AppDomain.CurrentDomain.BaseDirectory();
Hope this can help. -
2008年12月2日 10:50
1. In Solution Explorer, select AssemblyInfo.cs
2. View->Properties Window
3. refer to "Full Path"
Hope this can help.