Listview click question

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

Alan T

I want to catch the event when I click the listview.
However, if the listview is empty, I cannot catch the click event.
 
Hello Alan,

How are you tryin' to catch the event?

AT> I want to catch the event when I click the listview. However, if the
AT> listview is empty, I cannot catch the click event.
AT>
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Alan said:
I want to catch the event when I click the listview.
However, if the listview is empty, I cannot catch the click event.

Yes, the Click event only fires when you click on an item. You'll
probably have to handle MouseDown and MouseUp.
 

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