I have an MDI application. Within each MDIChild form, I have three ToolWindows which can be docked/hidden/floating. If any ToolWindows are floating, I need to hide them when the user puts focus on one of the other MDIChild windows. This will help avoid confusion for the user. The problem is that I need to know when the user has “closed” a ToolWindow by clicking on the “Hide” glyph. I realize that it’s not really closed, and that it’s just hidden. But I need to be able to distinguish between:
– the ToolWindow being invisible because focus is on another MDIChild
– the ToolWindow being invisible because the user clicked the “Hide” glyph
Basically, I just need to be able to trap the closing of a ToolWindow. The “Visible_Changed” event doesn’t work right, as this gets fired off even when changing the state from Docked to Floating.
Imported from legacy forums. Posted by Jeff (had 3296 views)