Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Is there a feature "Close all but this" for TabbedMDIManager?
posted

Is there a way to add a "Close all but this" for TabbedMDIManager?

For example if a user has 10 tabs opened I want to be able to close all of the tabs with the exception of the tab that I am on.  Right now the user would have to manually close each tab.

 

Thanks in advance.

  • 44743
    posted

    There is nothing on the tabbed mdi manager that would accomplish this, but you could do this manually by iterating the MdiChildren collection of the parent Form. Call Close() on each Form in the collection which is not the Form you want to leave open.