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
1225
WinTabbedMdi - Check if a tab of this form already is open
posted

One of the forms I use with the TabbedMdiManager, should only have a maximum of one tab. When the use chooses to open this form from the menu, I want to check to see if it is already open and if it is, rather than open another form of like it,  I want to make it the active tab. 

 I assume I can check the tabs collection on the tabgroup but I'm not sure how.

Parents
No Data
Reply
  • 45049
    Suggested Answer
    posted

    I recommend checking the MdiChildren property of the parent form, to see if you already a child form.  If you don't, then there's no tab, so you'd create a new instance.  If you do find one there, then activate that child form, which will activate the tab as well.

Children