|
-
Jul 26th, 2006, 02:43 AM
#1
Thread Starter
New Member
[RESOLVED] Treeview. Click / Afterselect troubles
Hi; I'm having some trouble with coding my treeview in VB.NET
I have the following subs in place;
Treeview1_MouseUP(ByVal etc etc etc)
Treeview1_Afterselect(Byval etc etc etc).
Now; The problem is, MouseUp should really be executed after selection.
For example; Situation is:
~Parent
~~~Child1
~~~Child2
Currently Child1 is selected.
I RIGHTCLICK child2. I want the 'MouseUp' event to reference to Child2 at that moment in time. But Treeview1.selectednode still refers to child1 .
How do I get 'Treeview1_MouseUP' to see Child2 as the 'active item' instead of Child1?
Thanks!
Last edited by sdm1; Jul 26th, 2006 at 03:14 AM.
-
Jul 26th, 2006, 02:54 AM
#2
Re: [2005] Treeview. Click / Afterselect troubles
TreeView.GetNodeAt(e.X, e.Y)
-
Jul 26th, 2006, 03:14 AM
#3
Thread Starter
New Member
Re: [2005] Treeview. Click / Afterselect troubles
Works like a charm! Thanks a lot!
-
Jul 26th, 2006, 03:16 AM
#4
Re: [RESOLVED] Treeview. Click / Afterselect troubles
Just note that you should allow for the situation where the event occurs at a point where there is no node.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|