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

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... :-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top