How would you handle context menu for TreeView?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If you have a tree view where particular nodes you want a context menu (right
click menu) to show? It should only show for specific nodes, which are
classes extending TreeNode
 
Hi
While right clicking on one of the nodes ( firing the event of opening the
menu) . add some logic in the handler that check on the selected node . If
it is one of those you are not supposed to have the menu with you just dim
all the menu items . otherwise you enable them ( and you have to include
that enabling part because they might be dimmed from previous click) . hope
this can help
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
Back
Top