H all,
I created a menu bar in Winform not dynamically. And all this is invisible, when the user has the rights only this can be seen. My username has full rights. For this, I wrote the code below, ..
private void menuActive(MenuStrip menus) { foreach (ToolStripMenuItem menu in menus.Items) { menu.Visible = true; for (int i = 0; i < menu.DropDown.Items.Count; i++) { menu.DropDown.Items[i].Visible = true; } } }
But it is visible menuItem and child menuItem. my little childItem menu has more childItem. This means that in TsmMaster and tsmregisterMaster are visible, but I can not access RegisterMasters Childs (ClassMaster, master master).
See image below ..

Please give your suggestion.
source share