You can access the MenuItems property on the MenuItem instance.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"weird0" <(E-Mail Removed)> wrote in message
news:10435638-c712-40ec-93af-(E-Mail Removed)...
> private void treeView1_MouseDown(object sender, MouseEventArgs e)
> {
> if (e.Button == MouseButtons.Right) // detect Right
> click
> {
> TreeNode selectedNode = treeView1.GetNodeAt(e.X,
> e.Y);
> ContextMenu cMenu = new ContextMenu();
> MenuItem menuItem = new MenuItem("Set Evidence",new
> EventHandler(popup));
> // want to add two sub-items Item1 and Item2 .... How ?
> cMenu.MenuItems.Add(menuItem);
> cMenu.Show(this,new Point(e.X+50,e.Y+30));
>
> }
> }