By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,894 Members | 2,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,894 IT Pros & Developers. It's quick & easy.

Pop up menu

P: n/a
I got a listview would like to have the contextmenustrip to pop up only when
I right click a listviewitem.
Oct 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Alan T" <al*************@yahoo.com.auwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>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.
Oct 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.