Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / January 2006

Tip: Looking for answers? Try searching our database.

Create custom tools Options pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
man-in-nature - 21 Dec 2005 13:43 GMT
what are the steps to create custom tools options pages for vs2005. Please do
not refer me to msdn doc. It contains incomplete or wrong documentation.

Thanks.
Ed Dore [MSFT] - 22 Dec 2005 04:07 GMT
Feel free to post back with some additional details on where you feel the
documentation is wrong or incomplete, and I'll make sure we get that info
over to our documentation folks. If you have installed the Visual Studio
SDK, there's a number of topics that detail how to go about implementing a
page for the Tools.Options dialog. If you haven't done so already, you can
download the Visual Studio SDK from here:

https://affiliate.vsipmembers.com/

Additionally, the VSIP SDK ships a couple of samples that might also be
helpful.

The OptPkg and OptionsPage are two such samples. I suspect the language
samples like MyC and Figs also implement pages for theTools.Options dialog.

Sincerely,
Ed Dore [MSFT]

This post is "AS IS" with no warranties, and confers no rights.
man-in-nature - 22 Dec 2005 14:10 GMT
Hello Ed Dore,

Thank you for your input. Yes, as you pointed out, VS SDK does provide
useful doc for creating custom tools options pages. What I am concerned here
is the steps to do that with automation model (ENVDTE/ENVDTE80).

It seems that there is only one page talking about this topic as the
following link shown:

http://msdn2.microsoft.com/en-us/library/b389wd38.aspx

The procedures provided is incomplete. It does not point out how to register
the custom tools options pages. It even does not provide any information
about the format of the xml file used to define the pages.

shawn

> Feel free to post back with some additional details on where you feel the
> documentation is wrong or incomplete, and I'll make sure we get that info
[quoted text clipped - 15 lines]
>
> This post is "AS IS" with no warranties, and confers no rights.
"Ed Dore [MSFT]" - 04 Jan 2006 01:45 GMT
Thanks Shawn,

I can't make heads or tails out of that help topic myself. Thanks for the
pointer. I'll get a bug report into the documentation team, and post back
here with some additional details on how to do this shortly.

Sincerely,
Ed Dore [MSFT]

This post is "AS IS" with no warranties, and confers no rights.
man-in-nature - 04 Jan 2006 03:48 GMT
Appreciate your time and help. I'm looking forward for your next post.

Shawn

> Thanks Shawn,
>
[quoted text clipped - 6 lines]
>
> This post is "AS IS" with no warranties, and confers no rights.
"Ed Dore [MSFT]" - 04 Jan 2006 23:07 GMT
Hi Shawn,

We should have a new set of VS 2005 automation samples posted shortly, one
of which actually contains an addin sample that does this. Keep an eye on
http://www.msdn.microsoft.com/vstudio/extend, as we'll post a link to the
new samples as soon as they go live.

To create a Tools Options page, you need to create a VS .Net Addin. Once
you have the addin created, you'll need to add a new UserControl to the
addin project, and additionally derive from and implement
EnvDTE.IDTToolsOptionsPage interface on this control.

To register the addin, you need to modify the addin's .addin file similar
to the following:

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<!--Copyright (c) Microsoft Corporation.  All rights reserved.-->
<Extensibility xmlns="http://schemas.microsoft.com/AutomationExtensibility">

  <HostApplication>
     <Name>Microsoft Visual Studio</Name>
     <Version>8.0</Version>
  </HostApplication>

  <Addin>
     <FriendlyName>MyToolsOptionsPage</FriendlyName>
     <Description>My First Tools Options Page</Description>
     <Assembly>MyToolsOptionsPage.dll</Assembly>
     <FullClassName>MyToolsOptionsPage.Connect</FullClassName>
     <LoadBehavior>0</LoadBehavior>
     <CommandPreload>0</CommandPreload>
     <CommandLineSafe>0</CommandLineSafe>
  </Addin>
 
  <ToolsOptionsPage>
     <Category Name="My Tools">
     <SubCategory Name="My Options">
        <Assembly>MyToolsOptionsPage.dll</Assembly>
        <FullClassName>ToolsOptionsPage.MyOptionsPage</FullClassName>
      </SubCategory>
     </Category>
  </ToolsOptionsPage>

</Extensibility>

Hopefully, that'll get you pointed in the right direction. Shawn, if you
get stuck, send me an email (minus the ".online") and I'll send you a copy
of a sample addin I've got that does this.

Sincerely,
Ed Dore [MSFT]

This post is 'AS IS' with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.