How to make node being selected by right mouse button down ?
I made it by right mouse button clicked like this:
private void myTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
this.myTreeView.SelectedNode = e.Node;
}
}
I want node being selected not by click, but just button down.
I’m guessing you are looking for something like this:
Subscribe to the MouseDown event of the TreeView and comment out the NodeMouseClick code.