The work around for this is Close and activate toolwindow but it causes
flickering. Is there a clean way of doing this?
Thanks,
Krish
> I have implemented an Add-in that opens a toolwindow when user clicks a
> commandbar button. I need to pass data to the toolwindow every time user
[quoted text clipped - 8 lines]
> Regards,
> Krishna
When you create the toolwindow via CreateToolwindow, you get a EnvDTE.Window
instance and a usercontrol instance (hosted inside the toolwindow). You must
hold a reference to the usercontrol in your connect class. Add a method to
the usercontrol, and call it whenever the commandbar button is clicked
through that reference. The window and the usercontrol must be created only
if the reference is null (the first time). Otherwise, you have only to make
visible the toolwindow.

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
>I have implemented an Add-in that opens a toolwindow when user clicks a
> commandbar button. I need to pass data to the toolwindow every time user
[quoted text clipped - 10 lines]
> Regards,
> Krishna
Krish - 12 May 2005 05:40 GMT
Thank you.
Krish
> When you create the toolwindow via CreateToolwindow, you get a EnvDTE.Window
> instance and a usercontrol instance (hosted inside the toolwindow). You must
[quoted text clipped - 18 lines]
> > Regards,
> > Krishna