This is a migrated thread and some comments may be shown as answers.

One toolwindow firing an event in another?

3 Answers 73 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Malcolm
Top achievements
Rank 1
Malcolm asked on 28 Sep 2010, 04:32 PM
I have two tool windows in my dock. One contains a tree view and I'd like to be able to change the content of the other one when a different item is clicked in the tree.

I can raise an event which can be handled on the parent form with the dock, but what I can't then figure out is how to then call a sub in the second tool window.

I can close the second window down then add it back in, using parameters on the new constructor to do what I need to do, but this changes the layout of the form every time it is actioned.

Does anyone have any thoughts?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 29 Sep 2010, 04:19 PM
Hi, 

Can you post a screenshot of your screen to get an idea? 
Thanks
Richard
0
Malcolm
Top achievements
Rank 1
answered on 30 Sep 2010, 10:02 AM
Hi Richard, I managed to work it out. I was just being a bit thick!
0
Richard Slade
Top achievements
Rank 2
answered on 30 Sep 2010, 11:22 AM
:o) We all have days like that! 
Glad you got it working
Tags
Dock
Asked by
Malcolm
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Malcolm
Top achievements
Rank 1
Share this question
or