I was wondering, how would I make my program stop Timer1 if it is in focus? I thought it may look like this
But that is wrong.
Code:
Private Sub AutoStop()
If Form1.Focused Then
Timer1.Stop()
End If
End Sub