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
900
How to tell if a tab's form is visible
posted

Hi,

I have an mdi app that uses the ultratabbedmdimanager.  We would like to be able to tell if a tab is visible (meaning it is the front-most tab in a tab group) so that we only handle updates from our object model in tabs that the user can currently see.

I am not sure how to tell if a tab is the front-most tab in a tab group.  Is this possible?  I found the tab.isVisible setting, but it returned true even if the tab wasn't front-most.  I can't depend on tab.isActive because users may have multiple tab groups so they can see 2 tabs at once - we still want to keep both of those updated.

If anyone knows how to determine this, I'd appreciate help.

Thanks,

~Karen

Parents
No Data
Reply
  • 48586
    posted

    Hello,

     

    As far as I understand your scenario you want to get which tabs are displayed on the tab group. I have created a sample to illustrate how you could get them. I was using the fact that if the tab is displayed it should has an UIElement. Please run the attached sample, press “Get Count” button  then expand the list next to it to see which tabs are fully visible.

     

    Let me know if this is what you are looking for.

    WindowsFormsApplication23.zip
Children