To add an item, you would call
myContextMenuStrip.Items.Add("Item title", null, myClickHandler);
To add a sub-menu, you take an existing item and do the same to it:
(myContextMenuStrip.Items[0] as ToolStripMenuItem).DropDownItems.Add(...)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…