By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 2,007 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

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

P: n/a

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... :-(
Nov 18 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This might give you some ideas.

http://www.arstdesign.com/articles/treeviewms.html

"karthee" <ka**************@gmail.comwrote in message
news:99**********************************@i37g2000 hsd.googlegroups.com...
>
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... :-(
Nov 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.