List Info

Thread: C-Sharp (C#) Group: TreeView node selection - unexpected behavior




C-Sharp (C#) Group: TreeView node selection - unexpected behavior
user name
2006-06-06 23:21:12
Hello all,

I'm implementing a TreeNode that currently has
drag-and-drop
functionality, but no multiselect.  The selection of a node
however,
doesn't seem to act the same way as it would in Windows
Explorer for
example.  If you select a node and move the mouse a little
bit off it
and release, it selects the node you had selected before the
one that
you moved a little off of.  This causes strange behavior
when doing a
drag-and-drop.  I would like it to be so that if I select a
node and
begin dragging right away, that node I'm dragging is
highlighted.
Below is the necessary code for drag/drop, mainly the event
mathods.

http://flashpass
.pastebin.com/764019

Any help would be appreciated!

-Daniel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )