Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Context Menu Position
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Determine Context Menu Position
Divers
Thread ID:
01336190
Message ID:
01336190
Vues:
58
I am displaying a context menu when the user right-clicks on a treeview node. I want to position the top of the menu at the bottom of the selected node and the left of the menu alligned with the left of the node.

The MouseUp event passes 'MouseEventArgs e', from which I can do:
contextMenuStrip1.Show(this, new Point(e.X, e.Y));
The problem is that I need to adjust the top & left a bit so that it is where I want it.
I think what I need to do is determine the top & left coordinates of the selected node.

Anyone know how to do this?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform