How do I trap a double-click event on a ListView that has no items?

Posted by Brad Younie on Stack Overflow See other posts from Stack Overflow or by Brad Younie
Published on 2010-05-07T14:27:53Z Indexed on 2010/05/21 19:40 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

In my C# app, I have a ListView on a Form. I want the user to be able to double-click on a section of the ListView when no items are selected in order to pop up a "New Item" dialog. The problem is that the DoubleClick event for the ListView only fires if an item is selected.

Is there a way to do this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about listview