windows forms:

Application.StartupPath();

wpf:

AppDomain.CurrentDomain.BaseDirectory;
or
String appStartPath = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);

Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (9 + 9) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 10.01.2012
Views: 135
Item date: 09.03.2009
Views: 1808
Item date: 28.09.2009
Views: 587
Item date: 08.03.2009
Views: 1407
Item date: 27.09.2009
Views: 915
Item date: 27.11.2011
Views: 950
Item date: 19.07.2009
Views: 821
Item date: 20.07.2009
Views: 1995
Item date: 10.04.2009
Views: 1252
Item date: 01.02.2009
Views: 1130