Hi I have an MDI form with 2 controls: an Office2010 ribbon and the MDItoolbar Manager
I have multiple child forms with Office2010 ribbons that nicely integrate when called from the MDI.
However I want to make the childform's first tab (really the first ribbon) the active ribbon. How do I do that?
Hello Vincent,
Can you please clarify or let me know if I understand you correctly by looking at my screenshot attached? It shows that you want the General Policy Info tab to be first? What you do plan on doing with the Categories tab?
Hi Michheel,
The order is okay. When I click on the Policies tool, I want the "General Policies Info" tab to get the focus. When you run the app, you'll see that it all works well, it's just that the child tab doesn't receive the focus as it is now
May I ask if you are still having issues? The inconsistency I found was that it works initially but if you click another tab the General Info is not selected.
For instance, click Policies. It works fine. Then close out the user control and click Claims. The General Info tab is not being automatically selected because the RibbonTab object is not resetting/changing and still equals to the Policies tab.
You going to have to set the tab explicitly instead of indexing "1" within the switch statement in MDIParent.cs.
tabPOLICIES = ToolbarMain.Ribbon.Tabs["_mdichild.merge.ribbontab.key__general policy info"];
Let me know if this helps.
Unfortunately, I noticed that the behaviors is not consistent. And I can't figure out why
I Can't believe the answer was this simple :-)
Thanks a lot Michael
Regards,
Vincent
I added to your switch statement inside your InsproMDI.cs file. So for each key clicked you can add the selected tab to equal to the index of the childform.
RibbonTab tab = ultraToolbarsManager1.Ribbon.Tabs[1]; ultraToolbarsManager1.Ribbon.SelectedTab = tab;
RibbonTab tab = ultraToolbarsManager1.Ribbon.Tabs[1];
ultraToolbarsManager1.Ribbon.SelectedTab = tab;
Let me know if you have any additional questions.