This might give you some ideas.
http://www.arstdesign.com/articles/treeviewms.html
"karthee" <(E-Mail Removed)> wrote in message
news:99f5f999-c5be-48d5-9a12-(E-Mail Removed)...
>
> 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... :-(