Dear all,
I am using ultraexplorerbar. The child menu is set to invisble or visible when run time.
If all child second level menu are set to invisible, how to set the first level menu icon to be invisible automatically???
Hello,
You could do a check up on setting visible to false to every item if all the items are invisible and then set 'Visible' to false on the group itself.
bool areAllInvisible = true; foreach (UltraExplorerBarItem item in ultraExplorerBar1.Groups[0].Items) { if (item.Visible) areAllInvisible = false; } if (areAllInvisible) ultraExplorerBar1.Groups[0].Visible = false;
Please do not hesitate to contact us if you need any additional assistance.
Can I use the code for looping the menu and set to invisible if all of its' child menu are invisible??