How can I differentiate between single and double clicks in .Net?
问题 I want to override OnMouseClick and OnMouseDoubleClick and perform different actions depending on which click style was used. The problem is that OnMouseClick is happening for both single and double clicks, and is getting called before OnMouseDoubleClick. I'm certain this must be a common requirement, so I guess I'm missing something pretty obvious. Can someone fill me in? Edit to add: the MouseEventArgs.Clicks count doesn't help. In the case of a double-click, the first click is handled as a