VAt

VAt

  • NA
  • 1
  • 0

Dynamic Menu

Mar 10 2006 6:07 AM
i want to add a dynamic menu in my app. here's little part of my code: [code] MainMenu mnuMain = new MainMenu(); MenuItem mnuMod = new MenuItem("&Module"); mnuMain.MenuItems.Add(mnuMod); ... some value stored in array arrValue foreach (string strKeyName in arrValue) { mnuMod.MenuItems.Add(strKeyName,new EventHandler(mnuModMenu_Click)); } this.Menu = mnuMain; [/code] now i need to add submenu underthe submenu(s) i've added dynamically. i don't know how can i do that? thanx for your help.