Home Forums WinForms controls Other WinForms controls Docking Window Event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18124 |

    I have 2 user controls that inherit from Xceed.DockingWindows.ToolWindow, and when i click the X button on each form. I see it makes it invisible insteads of disposing of it. The problem i have is i need to close or make invisible both of the forms simultaneously when the users clicks the X. Ive tried both the leave and visiblechanged event but both fire just after the their form loads. I’m just looking for an event i can use that only fires when the uses clicks the X to exit the form.

    Imported from legacy forums. Posted by jspence3 (had 2393 views)

    User (Old forums)
    Member
    Post count: 23064

    Ok, to avoid this issue, if you subscribe to the event during the form load of the “parent” form? I assume that you have a routine to handle all your visual elements and subscribe in this function? Instead, would you be able to subscribe in the form load of the form in question?

    Imported from legacy forums. Posted by Matt (had 2997 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.