473,671 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get project folder at design time?

Hi,

How can I get the project folder programmaticall y 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.TabPag e control).

TIA,
Jman
Nov 15 '05 #1
1 2978
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.mi crosoft.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.tek la.fi>
Cache-Post-Path: va************* *********@z-jtl.fi.tekla.co m
X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
NNTP-Posting-Host: tahma.tekla.com 193.64.145.22
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 .
phx.gbl!TK2MSFT NGP12.phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:2035 18
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

Hi,

How can I get the project folder programmaticall y 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.TabPa ge 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
4042
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 DotNetJunkies.com also. -------------------------------------------------------------------------- YEP, DOTNET JUNKIES REDESIGN....
8
1934
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 folders are actually created in the Solution Explorer so that I can find things easily. Its easy to select multiple files out of a single folder, but not recursively into subfolders. Any ideas? -- Adam Clauss
0
1045
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 EnvDTE.ProjectItem, and then getting the ContainingProject.FileName to figure out the path. But I really don't want to rely on EnvDTE being present. Anyone got an easier solution? --
4
2887
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 our current extensive number of .Net 1.1 web apps convert to it. After a week's time I dont's mind the converted app code that was broken and had to be changed, due to deprecation, new framework classes (some of which have names identical to...
4
4044
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 file path "D:\dnet\webproj\myfirstweb\home" does not correspond to the URL 'http://localhost:/test/myfirstweb'. The two need to map to the same server location. HTTP Error 404:Object not found".
0
5559
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
2
1622
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 Windows XP Pro, SP2 computer. I developed a lot of it by using the excellent tutorials by Scott Mitchell at http://msdn2.microsoft.com/en-us/library/aa581770.aspx I am having numerous problems.
3
1813
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 click on Create, then select asp.net web application. This creates a properties folder and references folder in solution explorer. 2) go to the File menu and select New/Website. this just creates the
4
4461
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 Project. So let's say I've created a Folder called "MyVBNet Classes" to hold these general-use VB.Net class files that I will eventually associate with various Projects I create. Now let's imagine I've created a class called "MyClass.vb" that...
0
8402
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8605
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7445
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6237
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5703
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.