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

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 27394

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>