I need to determine current program directory, from which it is started. Why did I need this Well, I'm trying to connect to sql database, that is placed in the same directory as the program itself. But when I prepare connection string "Data Source=MyDB;" - SqlConnection.Open() returns exception, cannot find database MyDB. So I decided to append a directory name to database name, but the program on a mobile device may be placed anywhere, depending on program version and OS, therefore I cannot use current program path as a constant to use it.
How can I decide this problem

How to determine the current directory on the mobile device
Intern
hi cosmmm,
try this link
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=664484&SiteID=1
cheers.