PC Review


Reply
Thread Tools Rate Thread

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

 
 
karthee
Guest
Posts: n/a
 
      18th Nov 2007

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... :-(
 
Reply With Quote
 
 
 
 
Joey Joe Joe
Guest
Posts: n/a
 
      18th Nov 2007
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... :-(


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add nodes to tree view control accessuser1308 Microsoft Access 0 8th Dec 2009 07:45 PM
abt tree view in asp.net can i hide the tree nodes ? raki Microsoft ASP .NET 1 24th Jun 2009 12:45 PM
Creating Tree view nodes in code Sumz Microsoft ASP .NET 1 25th Oct 2008 04:43 PM
Add Root Nodes to tree view Mark Broadbent Microsoft Dot NET Framework Forms 3 31st Aug 2004 02:49 PM
How to Collapse all the nodes of a tree view? Luis E Valencia Microsoft ASP .NET 0 1st Jun 2004 10:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 AM.