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 / August 2005

Tip: Looking for answers? Try searching our database.

Global Services

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rik - 25 Aug 2005 17:18 GMT
Hi all,

I have a package that offers a service.  I'd like to use this service from a
tool window that I have created.  The tool window doesn't have a reference
to a service provider (at the moment).  How do I get the service from my
package?

Rik
"Ed Dore [MSFT]" - 31 Aug 2005 18:46 GMT
Hi Rik,

We probably need some additional details about your toolwindow
impementation? Is this a native or managed package? If managed, are you
using the VSIP Extras classes (targeting VS 2003), or the Mananged Package
Framework (targeting VS 2005)?

Toolwindows typically implement an IVsWindowPane interface. The SetSite
method of that interface is typically how you get access to an
IServiceProvider from which you can call QueryService to retrieve a
specific service from the shell. Additionally, the package object
implements IVsPackage, which also has a SetSite implementation that
receives an IServiceProvlder when the IDE first loads the package.

Sincerely,
Ed Dore [MSFT]

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

Rate this thread:







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.