Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

how to avoid 'timer' opening a file everytime it refreshes ?

$
0
0
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        If (Process.GetProcessesByName("AcroRd32").Length > 0) Then

        End If
        Process.Start("C:\Windows\Notepad.exe")
    End Sub

When the timer runs, it opens the notepad after every 100ms or after a set interval. I want it to open only at once. How can i do that ?

Viewing all articles
Browse latest Browse all 12583

Trending Articles



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