A Alan T Oct 3, 2006 #1 I got a listview would like to have the contextmenustrip to pop up only when I right click a listviewitem.
I got a listview would like to have the contextmenustrip to pop up only when I right click a listviewitem.
J james Oct 3, 2006 #2 Alan T said: I got a listview would like to have the contextmenustrip to pop up only when I right click a listviewitem. Click to expand... 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.
Alan T said: I got a listview would like to have the contextmenustrip to pop up only when I right click a listviewitem. Click to expand... 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.