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
710
How to set selected ribbon tab while merged parent and child form's ribbon tab.. ?
posted

Hiiiii,

i m have used one parent form and multiple child forms. my child forms are opening in parent form. now i m used  ultratoolbarmanager for ribbon tab on parent and child forms.. and then i m merged child form's ribbon tab with parent form. 

Now problem is how can i set selected one particular tab in child form... ?

I m also tried with below code but it's not worked.

UltraToolbarsManager1.Ribbon.SelectedTab = UltraToolbarsManager1.Ribbon.Tabs("document")

is it any solution about set selected ribbon tab while merged parent and child form's ribbon tab.. ?

-- Hiren Lad

Parents
No Data
Reply
  • 44743
    Verified Answer
    posted

    You would need to set the SelectedTab on the parent manager, not the child. So the way you would do that is by starting with the child tab you want selected and selecting the parent tab it is attached to:

    Dim tab As RibbonTab = UltraToolbarsManager1.Ribbon.Tabs("document")
    Dim attachedParentTab As RibbonTab = tab.AttachedParentTab
    attachedParentTab.Ribbon.SelectedTab = attachedParentTab

Children