How do I get the TreeNode that a context menu is called from?

I'm not sure to understand your question. When you have a click on the TreeView, you can do this to get the selected Node and : void tvMouseUp(object sender, MouseEventArgs e) { if(e. Button == MouseButtons.

Left) { // Select the clicked node tv. SelectedNode = tv. GetNodeAt(e.

X, e. Y); if(tv. SelectedNode!

= null) { myContextMenuStrip. Show(tv, e. Location) } } }.

I wasn't using the TreeView click event I was using the MenuItem click event. But this helped to figure out my solution. The Treeview is always available and there is only one.So I just access it directly instead of trying to get it from the event handler parameters.

– scott Dec 16 at 14:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions