Application path in General class (.CS)

Posted by Anu on Stack Overflow See other posts from Stack Overflow or by Anu
Published on 2010-04-19T10:00:36Z Indexed on 2010/04/19 10:03 UTC
Read the original article Hit count: 263

Filed under:

Hi i want to get applcation path in one seperate class used in my XAML,WPF applcation. In Animals.cs,

string aPath2 = Application.StartupPath;
 MessageBox.Show(path);

It shws error error CS0117: 'System.Windows.Application' does not contain a definition for 'StartupPath'

I have to give data to treeview,im taking that all details from file in applcation path.

© Stack Overflow or respective owner

Related posts about c#