Hello,
we use NetAdvantage 13.1 Win CLR4x. we build our menu with the UltraTollbarManager and the Menu2010-style. After program start always the first "normal" tab is active. Sometimes the file menu tab should be active. Is it possible to activate the file menu tab by code?
Hello Frank Grossmann,
You could use the following code:
1 private void Form1_Shown(object sender, EventArgs e)
2 {
3 this.ultraToolbarsManager1.Ribbon.ApplicationMenu2010.DropDown();
4 }
Please feel free to let us know if you have any other questions with this matter.
Thank you Kaloyan Chipilev,
that's the solution. But now i have another question. In the file menu always the first PopupControlContainerTool (contains an user control) is activated and visible. Sometimes i want to show one of the other PopupControlContainerTools activated by code when the file menu is dropped down.
Best regards
Hello Frank Grossmann ,
Thank you for your feedback.
We are glad that this is working for you.
private void Form1_Shown(object sender, EventArgs e)
{
this.ultraToolbarsManager1.Ribbon.ApplicationMenu2010.DropDown();
this.ultraToolbarsManager1.Ribbon.ApplicationMenu2010.NavigationMenu.ActiveContentTool = (PopupToolBase)this.ultraToolbarsManager1.Ribbon.ApplicationMenu2010.NavigationMenu.Tools[4];
}
Please feel free to let us know if you have any other questions with this
matter.
Hello Frank,
I am glad that this is working for you.Thank you for your feedback and please do not hesitate to contact us if you have any other questions in the future.
Hello Kaloyan Chipilev,
that works fine.
Thank you.