How to get project folder at design time?

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Hi,

How can I get the project folder programmatically at design time?
I'd like to use it in the Forms Designer during dialog design process...

And another question... how can I create a custom tabpage inside my
custom tabcontrol from the Forms Designer (so that I don't have to
modify the code by hand... change the Forms.TabPage to my custom
MyCustom.TabPage control).

TIA,
Jman
 
Hi. For the first question, you'd want to use the DTE object. Add a
reference to EnvDTE.dll to your project. Off the EnvDTE, there is an
interface call Project with a property called FullName that returns a string

See if that will help.
 
Back
Top