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 / May 2007

Tip: Looking for answers? Try searching our database.

How to add a new button in the Team Explorer toolbar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 03 May 2007 18:34 GMT
I would like to know how to add a new button in the toolbar of the Team
Explorer (TE), which will provide a extended cusom function. Is the TE
developed as a VsPackage? If so, do I have to know the GUID and the CommandId
header files of the Team Explorer VsPacakge?

The PcwTESample in the VSTS SDK shows only adding new nodes in the TE.

Any help or reference would be greatly appreciated.
Walter Wang [MSFT] - 04 May 2007 08:45 GMT
Hi Jason,

According to sample code at
http://msdn2.microsoft.com/en-us/library/bb166773(vs.80).aspx, what we
needed is the Toolbar ID for Team Explorer.

I'm currently consulting this information in our internal discussion list.
I'll keep you posted as soon as I get further information. Thank you for
your patience and understanding.

Sincerely,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Jason - 04 May 2007 17:16 GMT
Walter

Thank you for pointing me to the similar example. That is helpful.

However, in order to add a button to the TE, I need to know the
GUID/CommandId pair of the TE toolbar group. Could you tell where I can find
this information?

Thanks!

> Hi Jason,
>
[quoted text clipped - 31 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 07 May 2007 05:58 GMT
Hi Jason,

Yes I'm currently researching on this. Would you please email me directly
so that I can let you know ASAP? Thanks.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Ross Boe - 07 May 2007 16:17 GMT
Walter,
Can you post the answer to the group when you find out? We are working
on a plug in and would like it in the Team Explorer bar as well.

Thank You,
Ross Boe
> Hi Jason,
>
[quoted text clipped - 11 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 08 May 2007 03:11 GMT
Hi,

The toolbar in the Team Explorer toolwindow is defined in the Team
Explorer's .CTC file as follows:

   // Team Explorer toolbar
   guidELeadPEPackageCmdSet:itbrTeamExplorerToolbar,      
guidELeadPEPackageCmdSet:0,                     0x000,  TOOLWINDOWTOOLBAR,  
   "Team Explorer";

Where:

#define itbrTeamExplorerToolbar             0x300
DEFINE_GUID(guidELeadPEPackageCmdSet,
0x23d49123, 0x60ac, 0x4d7e, 0x93, 0x9a, 0xe0, 0x1a, 0x4e, 0x17, 0x6b, 0xee);

I believe these information should help to add a custom command to it use
the similar approach in my first reply. Please feel free to let me know if
there's anything unclear.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "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.