Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Context Menu Question
Message
De
10/08/2008 20:39:24
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01336199
Message ID:
01337969
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform