1) Place an UltraDayView control on a form
2) Go to the MouseMove event of the control
3) Add some code to let you see when the event is being fired (i.e. have a label as a counter which increases each time the event fires)
4) Run the application.
Hover the mouse over the control, now DO NOT MOVE THE MOUSE for the next instructions.
Press the mouse button down to select a timeslot. When you release the mouse button, you will see that the event has fired.
Now click the mouse button on the timeslot you selected again. This time the event fires twice.
The mouse cursor has not moved during any of these operations - yet the mousemove event is being fired. What gives? Surely this is not the expected behaviour. It is causing me headaches because im dealing with drag and drop while also trying to keep the double click event working correctly.
I'm pretty sure what you are describing is the way Windows has always issued mouse messages. In any case we have no control over it because we don't do anything for the MouseMove event, it is inherited from the System.Windows.Forms.Control class.
There is a small but important difference.
In a normal microsoft control, the event is raised when you release the mouse button. In your controls, the event is raised when you press the button down AND when you release the button - but this behaviour only happens when you are clicking on a timeslot that is already selected.
The reason this is a problem for me is because im trying to implement a customised drag and drop facility but it is causing me problems because its conflicting with the doubleclick event. The fact that the event fires when the mouse is released isnt really a problem for me - its only a problem if the event fires when the mouse is pressed down, which only seems to happen with the infragistics control.