You could save the MenuItems in an array:
MenuItem[] menuItems = new MenuItem[arrValue.Length];
for(int i = 0; i < arrValue.Length; i++)
{
menuItems[i] = mnuMod.MenuItems.Add(arrValue[i], new EventHandler(mnuModMenu_Click));
}
// Add items to the first submenu
menuItems[i].MenuItems.Add("First submenu's first item", new EventHandler(...));
Just remember that if you use the same event handler, you'll have to identify in it which menu item was selected, and if you didn't save all the MenuItem references, you'll have to do it by text. -- LuisR
Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005