0

Hi guys.
I have a question.
How i could do to display a panel of options if the cursor click in a item of the listview ?
I know about the MouseEvent and how to select the right click event, but i lost to apply that click in a item.
Thanks

2
Contributors
4
Replies
6
Views
7 Years
Discussion Span
Last Post by Kimpl
0

Thanks for your answer Kimpl.
I ve done that and now when clicking in the listview, the contextmenu shows.
But the problem is that i want to show that menu only if he clicks in a selected item.
How can i do that ?
Thanks

0

I could do it !!!

I have done this:

private void conectadosView_MouseDown(object sender, MouseEventArgs e)
        {           
          if ((e.Button == MouseButtons.Right) && (conectadosView.GetItemAt(e.X, e.Y)!= null)) //If it's the right button.
            {
              
                    contextMenuStrip1.Show(this.conectadosView, e.Location);
             
            }
        }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.