Peter Kiers
asked on
Show a contextmenu when right-click on a selected node of a lisview.
Dear Experts,
I have set a contextmenu to a listview. But as you can see in the picture
I can right-click anywhere in the listview.
What I would like is to show the contextmenu only when a user right-clicks
on a selected node.
Who knows the answer?
Peter
Peter
Example.jpg
I have set a contextmenu to a listview. But as you can see in the picture
I can right-click anywhere in the listview.
What I would like is to show the contextmenu only when a user right-clicks
on a selected node.
Who knows the answer?
Peter
Peter
Example.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
private void lvNotes_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
}
}
P.