mousemove事件和timer事件
比如把timer的interval设置为500,意思就是让他的执行频率高一点,那么当鼠标移动时,到底是执行mousemove事件呢还是timer事件?或者说是2者同事执行?
[解决办法]
同时执行吧?
[解决办法]
Option Explicit
Private Sub Form_Load()
Timer1.Interval = 100
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Caption = X & " " & Y
End Sub
Private Sub Timer1_Timer()
Dim i As Long
Form1.Caption = Time
For i = 0 To 10000000
If i = 10000000 Then Print Date
If i = 0 Then Cls
Next
End Sub