1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| Private Sub OpenProgressBar()
ProgressBarForm.Show()
ProgressBarForm.Location = New System.Drawing.Point(CInt(Screen.PrimaryScreen.WorkingArea.Width / 2) - 150, CInt(Screen.PrimaryScreen.WorkingArea.Height / 2) - 25)
End Sub
Private Sub FillUpProgressBar(ByVal value As Double)
If value >= 1 Then
Me.Timer1.Interval = 250
ticCount = 0
Me.Timer1.Enabled = True
End If
ProgressBarForm.ProgressBarYMD.Value = CInt(value * 100)
End Sub
Private Sub CloseProgressBar() Handles Timer1.Tick
ticCount += 1
If ticCount = 2 Then
Me.Timer1.Enabled = False
ProgressBarForm.Hide()
End If
End Sub
Private ticCount As Integer |
Partager