Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Context Menu Question
Message
From
10/08/2008 20:39:24
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01336199
Message ID:
01337969
Views:
10
>Thanks. I already have code in place similar to this. This determines which menu to display.
>
>The problem is that I need to know the Key of the employee that was clicked on. The key is stored on the node's Tag property. But in the openCustomerToolStripMenuItem_Click event, how do I get that key off the node?


I don't understand the problem Kevin ... if you are already using the code that Paul suggested, then the tree's GetNodeAt() method should have retreived the correct node for you and you only have to use it's Tag property. Do you need to post some of your code?

~~Bonnie





>>There's a nice KB article here:
>>
>>http://support.microsoft.com/kb/810001
>>
>>Basically you create a new Point object based off the X/Y passed into the event, then call the tree's GetNodeAt() method (passing in the new point object).
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform