Hi folks,
I made a custom user control in VS 2008 and the trouble is that it can't find the directory of the project. The only directory it seems to get access to is the build dir (....bin\release)
Other than that, if I try to use a relative path it doesn't work, the only way that I've found so far is to provide the full path. Using Environment.CurrentDirectory doesn't seem to work either.
Any ideas?
Loading

Guest UserRank #1,422 · 1.2K reputationPosted Mar 10, 2011, 5:38 PM EST
Suthish NairRank #92 · 22.8K reputationPosted Mar 12, 2011, 8:02 AM EST
Marius17 reputationPosted Mar 12, 2011, 8:17 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Mar 12, 2011, 9:55 AM EST
So you need to explain better why you need the project directory. There are many possible solutions and if someone suggests something and it does not satisfy your requirement, you are just going to say wrong, that does not work and we have wasted our time.