If I got your questions right ... if you are looking for a way to control the context menu displayed for different nodes you can just assign the right context menu on the node
when you are populating the treeview control
TreeNode nd= TreeView1.Nodes.AddNode("Sometext.txt");
nd.ContextMenu=ContextMenu1;
other than that ... what you are looking for is a bit confusing may be with clarifications we can help you more.:confused::confused::confused::confused::confused::confused: