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