View Single Post
Old 16.05.2006, 04:25   #23
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

i was stating new custom items :x
sorry if i got u to misunderstand...

some examples (not in order, but u'll understand

private void contextMenu_Click(object sender, EventArgs e)
{
System.Windows.Forms.MenuItem b = (System.Windows.Forms.MenuItem)sender;
...
}

contextMenu1 = new System.Windows.Forms.ContextMenu();
menuItems = new System.Windows.Forms.MenuItem();
menuItems.Click += new EventHandler(this.contextMenu_Click);
contextMenu1.MenuItems.AddRange(menuItems);
Digital is offline