怪事,为何我的鼠标根本没动,却会触发mousemove事件呢?代码为证
怪事,为何我的鼠标根本没动,却会触发mousemove事件呢?代码为证Option Explicit
Private Sub Form_Load()
Me.WindowState = 2
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Debug.Print "鼠标在移动!"
End Sub
新建一个窗体,然后拷上代码,试下看看,我的鼠标绝对没动,但是每次都会触发一次mousemove事件,这是为什么呢?