I've TreeView object which i need to enable users to delete nodes from it, So i have delete ToolStripMenu that i assign to nodes enabled to be deleted. But i want to know which node was pressed on and fired the delete_toolStripMenuItem_Click event without using the treeView.SelectedNode property.
Is there a way to know the exact node that was pressed on ?
Here's one approach. You handle the MouseDown() event of the TreeView and determine which TreeNode was Right Clicked with TreeView.GetNodeAt(). Store that TreeNode at Form level so you can access it in the Delete menu handler: