mooman_fl Posted April 6, 2004 Posted April 6, 2004 Ok... here is a tough one. I need my usercontrol to be able to determine the current project directory for the project it is added to. After some searching I have come up with the EnvDTE.... but all attempts to use this in my control have failed. The only real examples I can seem to find are geared towards the Macro Editor. I may be barking up the wrong tree though. I need the project directory, not the application directory. Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
wessamzeidan Posted April 6, 2004 Posted April 6, 2004 I think you can just use Application.AppPath Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
CattleRustler Posted April 6, 2004 Posted April 6, 2004 or application.startuppath Quote mod2software Home of the VB.NET Class Builder Utility - Demo and Full versions available now!
mooman_fl Posted April 8, 2004 Author Posted April 8, 2004 I think you can just use Application.AppPathor application.startuppath Those only work at runtime, and only on the executables compile directory. I want somthing that will be used at designtime in a control dropped on the form before a compile is done on the application. Using either of those suggestions would take you to the directory of the VS.NET executable. (In other words I had already tried that. LOL) I need something that will take me to the top level of the project directory for the project the control has been added to. Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.