Uploaded February 2009 | Updated September 2026, 3 hours ago
have found this bug while developing an application.
The bug is that your windows forms or controls can receive many false "MouseMove" event when you have any "search file" windows opened or minimized, with animated buddy like dog, wizard & co).
I can reproduce this bug with VC++ MFC, VB.NET F1.1, C# F2.0 on a Windows XP Professional SP3 machine.
Here is the code for VB.NET:
Private truemove As Integer
Private falsemove As Integer
Private oldpos As Point
Private Sub FormMouseMove(...) Handles MyBase.MouseMove
Dim newpos As Point = Form.MousePosition
If newpos.Equals(oldpos) Then
falsemove += 1
FalseLabel.Text = falsemove.ToString
Else
truemove += 1
TrueLabel.Text = truemove.ToString
End If
oldpos = newpos
End Sub
have found this bug while developing an application.
The bug is that your windows forms or controls can receive many false "MouseMove" event when you have any "search file" windows opened or minimized, with animated buddy like dog, wizard & co).
I can reproduce this bug with VC++ MFC, VB.NET F1.1, C# F2.0 on a Windows XP Professional SP3 machine.
Here is the code for VB.NET:
Private truemove As Integer
Private falsemove As Integer
Private oldpos As Point
Private Sub FormMouseMove(...) Handles MyBase.MouseMove
Dim newpos As Point = Form.MousePosition
If newpos.Equals(oldpos) Then
falsemove += 1
FalseLabel.Text = falsemove.ToString
Else
truemove += 1
TrueLabel.Text = truemove.ToString
End If
oldpos = newpos
End Sub

