Pop up menu

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

I got a listview would like to have the contextmenustrip to pop up only when
I right click a listviewitem.
 
Alan T said:
I got a listview would like to have the contextmenustrip to pop up only
when I right click a listviewitem.

I think when I did this, I used something like the below in the bit of code
that "called" my popup (I was building the menu dynamically)

if (listview.selecteditems.count == 0) return;


If you have a "static" menu just assigned to the listview it's a bit
different, you might not be able to do it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top