I've created a ContextMenuStrip like this:
Item_tree.ContextMenuStrip =new ContextMenuStrip();
Item_tree.ContextMenuStrip.Items.Add("new", Images.Images[0], New_Context_Click);
Item_tree.ContextMenuStrip.Items.Add("copy", Images.Images[0], Copy_Context_Click);
Item_tree.ContextMenuStrip.Items.Add("edit", Images.Images[0], Edit_Context_Click);
What I want to do is to make certain items in the list visible only under certain conditions.
Disregarding how this decision is made, I can't figure out how to make the specific item visible or not.
Any help would be appreciated.
Thanks.
Item_tree.ContextMenuStrip =new ContextMenuStrip();
Item_tree.ContextMenuStrip.Items.Add("new", Images.Images[0], New_Context_Click);
Item_tree.ContextMenuStrip.Items.Add("copy", Images.Images[0], Copy_Context_Click);
Item_tree.ContextMenuStrip.Items.Add("edit", Images.Images[0], Edit_Context_Click);
What I want to do is to make certain items in the list visible only under certain conditions.
Disregarding how this decision is made, I can't figure out how to make the specific item visible or not.
Any help would be appreciated.
Thanks.