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.