Good evening
Im trying to open a file "in my case *.exe " with this code:
"
"
but its's opening many times..How can i open it only once with progressbar get to maximum? thank you for your time!
Im trying to open a file "in my case *.exe " with this code:
"
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub
Private Sub ProgressBar1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProgressBar1.Click
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(1)
If ProgressBar1.Value = ProgressBar1.Maximum Then
Process.Start("C:\Users\blah\Desktop\myexe.exe")
End If
End Sub
End Class
but its's opening many times..How can i open it only once with progressbar get to maximum? thank you for your time!
Comment