473,386 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to get project folder at design time?

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
Nov 15 '05 #1
1 2966
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.

---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
dr***@enilno.microsoft.com

--------------------
From: "John Smith" <jm***@suomi24.fi>
Subject: How to get project folder at design time?
Date: Fri, 5 Dec 2003 13:18:04 +0200
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Organization: Tekla Oyj
Message-ID: <10***************@vanessa.tekla.fi>
Cache-Post-Path: va**********************@z-jtl.fi.tekla.com
X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: tahma.tekla.com 193.64.145.22
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP12.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:203518
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

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


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
by: nospam | last post by:
THIS IS the DOTNETJUNKIES MESSAGE ------------------------- We're Sorry As many of you know we have recently launched SqlJunkies.com. We have overhauled our runtime and will be using it on...
8
by: Adam Clauss | last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to get them all added to the solution. Preferable would be that the...
0
by: John Wood | last post by:
I want to be able to retrieve the folder of the current project at design time, from one of my designers. I can't see an easy way to do it. Currently I'm using Site.GetService to retrieve a...
4
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how...
4
by: g4356 | last post by:
Hi, A new baby question: I downloaded a dot net project and saved it to my local disk. When I tried to open this project, a message popped up: "Unable to open web project "test/myfirstweb"/ The...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
2
by: =?Utf-8?B?VG9ueSBHaXJnZW50aQ==?= | last post by:
Hello. Trying to develop ASP.NET Web Application Project using Visual Studio 2005, SP1, Web Application Projects 2005, .NET Framework 2.0.50727.42, ASP.NET 2.0.50727.210, in Visual Basic on a...
3
by: moondaddy | last post by:
What's the preferred (best) way to start a website project in VS 2005? I know of 2 ways and each creates a site differently and has different behavior. Open VS 2005 1) from the start page...
4
by: Alan Mailer | last post by:
Again, I'm new to VB.net and there is something I need help with: Like (I assume) many of us, over time I want to be able to create some VB.net classes that I might want to use in more than one...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.