Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27199

VS 2010 Auto Stop

$
0
0
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.

Viewing all articles
Browse latest Browse all 27199

Trending Articles