C # MouseEventArgs "e.Delta" doesn't work

Hi I have an MDI application where a child window handles multiple mouse events. Everything didn't work (e.Button, e.Location, etc.) until I tried to get the value from e.Delta (number of mouse held).

e.Delta always returns 0.

My events don't fire and e.Delta is always zero and everything else seems to be valid.

I have tried the following events in my child form:
MouseClick
MouseDown
MouseMove
MouseUp

I even tried to handle some mouse events in the main parent MDI window to see if that helps, but the same result ... e.Delta always = 0.

+1


source to share


1 answer


Well this property probably won't be valid unless it happens to you via the MouseWheel event (which I don't see listed there).



Try connecting to this and you should get an event when the wheel is rotated.

+6


source







All Articles