Can anyone help, i am trying to get a reference to a menuitem in ContextMenu_Popup, currently i am using the index which is really bad as the index can change.. like this..
ContextMenu.MenuItems.Enabled = false;
I have added the menuitem like so but i don't see an NAME item or anything that i can replace the index with... Any ideas?
MenuItem inserter =new MenuItem();
inserter.Shortcut = Shortcut.Ins;
inserter.ShowShortcut = true;
inserter.Text = "Insert";
inserter.Click += new EventHandler(inserter_Click);
Thanks in advance