In my ToolWindowPlugin I have two ToolWindows. The idea was to draw some
graphics in the first one and have the second one show properties in a
propertygrid and docked in the ordinary property window.
However I don't seem to be able to communicate or pass data between the two.
?
Martin Stave
Hi Martin,
You don´t say why you can´t communicate them but as a general answer, each
toolwindow hosts inside a usercontrol, which can be retrieved at any time
using the window.Object property if you didn´t store it when you called
CreateToolWindow. The usercontrols can have methods that can be called by
others.

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
> In my ToolWindowPlugin I have two ToolWindows. The idea was to draw some
> graphics in the first one and have the second one show properties in a
[quoted text clipped - 5 lines]
>
> Martin Stave
Martin Stave - 29 Mar 2006 10:01 GMT
Thanks for your answer, although I have already gotten help from the
DevExpress guys as my ToolWindows was created through their CodeRush CoreX
helper. And that was part of the problem too as the creating of the windows
were hidden, so I needed the correct access to the hosting instance
so I needed something like the below:
ToolWindow2 myWindow =
(ToolWindow2)CodeRush.ToolWindows.GetPlugInControl(typeof(ToolWindow2));
Martin Stave
> You don´t say why you can´t communicate them but as a general answer, each
> toolwindow hosts inside a usercontrol, which can be retrieved at any time
> using the window.Object property if you didn´t store it when you called
> CreateToolWindow. The usercontrols can have methods that can be called by
> others.