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 / March 2006

Tip: Looking for answers? Try searching our database.

Passing data between ToolWindows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Stave - 28 Mar 2006 20:09 GMT
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
Carlos J. Quintero [VB MVP] - 29 Mar 2006 09:10 GMT
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.

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.