in custom tree view -> select multiple nodes and right click, theselection is disappearing,

  • Thread starter Thread starter karthee
  • Start date Start date
K

karthee

I am creating a custom treeview with multiple selection, if i select
multiple nodes and right click, the selection is disappearing,

i tried with somany things like

on mouse click my code is like this

if (e.Button != MouseButtons.Right)
{
if (ModifierKeys == Keys.None &&
(m_SelectedNodes.Contains(node)))
{
// Potential Drag Operation
// Let Mouse Up do select
}
else
{
SelectNode(node);
}
}

*m_SelectedNodes is the list of selected nodes.

but this is is not working... :-(
 
Back
Top