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 single click in OnMouseClick with MouseEventArgs.Clicks == 1.
Edit to add: the objects are image thumbnails. Single click should toggle selection on and off for export. Double click should make the thumbnail full screen. The selection and "activation" actions are orthogonal. This may indicate an underlying problem with the two actions...
Cheers, Rob