PC Review


Reply
Thread Tools Rate Thread

Treeview - select Item before rightclick -> contextmenu

 
 
LinusHechinger
Guest
Posts: n/a
 
      14th Oct 2009
i've got a treeview and a contextmenu opening
for it.
But got the problme, whe suing rightclick
there's a item selecte, thats not "under" the cursor,
so my options performed with the selectet
item in the contextmenu work with another item....

How to change the selected item befor contextmenu opens
to the one which is -under- the cursor ????
 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      14th Oct 2009
LinusHechinger schrieb:
> i've got a treeview and a contextmenu opening
> for it.
> But got the problme, whe suing rightclick
> there's a item selecte, thats not "under" the cursor,
> so my options performed with the selectet
> item in the contextmenu work with another item....
>
> How to change the selected item befor contextmenu opens
> to the one which is -under- the cursor ????


See my reply in microsoft.public.dotnet.framework.windowsforms.

(It is:
"Handle the MouseDown event. Select the item under the mouse
if the right button has been pressed. Call the TVW's GetNodeAt
method to determine the node to be selected.")


--
Armin
 
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
Treeview - select Item before rightclick -> contextmenu LinusHechinger Microsoft VB .NET 1 14th Oct 2009 12:37 PM
TreeView - change selected Item before Contextmenu opens LinusHechinger Microsoft Dot NET Framework Forms 1 13th Oct 2009 04:57 PM
help with .NET TreeView control - rightclick/mousedown & context m =?Utf-8?B?UGhpbGlw?= Microsoft Dot NET Framework Forms 0 21st Feb 2006 06:11 PM
Treeview Rightclick and Contextmenu Peter van der Veen Microsoft VB .NET 0 2nd Feb 2005 04:59 PM
Is it possible to add ContextMenu items to the Standard TextBox ContextMenu??? =?Utf-8?B?TWlrZSBpbiBQYXJhZGlzZQ==?= Microsoft Dot NET Framework Forms 1 15th Mar 2004 08:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.