Windows Develop Bookmark and Share   
 index > Windows Forms General > MouseUp-Event doesn't work correctly for the ListView
 

MouseUp-Event doesn't work correctly for the ListView

using Visual Studio 2005.


The OnMouseUp-Method or the MouseUp-Event is fired correctly, when the mouse cursor is within the area of the ListView-Control. But when I hold the mouse button and then loose the button outside the control it is not fired. Then when I move inside the control again with the cursor suddenly it is fired.

Other controls like the listbox or the datagridview does not have such a strange behaviour.

Is there a workaround? Ok, it would be no problem to prevent from the MouseUp event when I move into the control range again (with MouseEnter and MouseLeave). But that is not my problem. I need the MouseUp-Event to the right time even when the mouse is out of the control area.

Thanks in advance!
Aki999  Tuesday, September 04, 2007 3:01 PM
Set the ListView's Capture property to True on the MouseDown event.
nobugz  Tuesday, September 04, 2007 3:27 PM
Set the ListView's Capture property to True on the MouseDown event.
nobugz  Tuesday, September 04, 2007 3:27 PM
Thanks!
Aki999  Wednesday, September 05, 2007 7:00 AM
I've tried so but this strange thing continues (no MouseUp suboccours).
Other solutions?
pascalman  Sunday, September 20, 2009 12:35 PM

You can use google to search for other answers

Custom Search

More Threads

• How to hide the HorizontalScrollbar on the checkedListBox?
• remove radiobuttonlist listitem
• PDF inside a Win Form
• DataGridView.Sort question
• Formatting the caption of a group box
• how to use OWC in winform?
• AxWebBrowser Changed?
• A generic error occurred in GDI+.
• WebBrowser. How can I tell it to anchor to a particular webpage?
• How to add multiple controls onto a Datagridview cell?