Progress Bar pada VB.NET
Selasa, 17 Februari 2015
Edit
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static i As Integer
i = i + 1
ProgressBar1.Maximum = 100
If i > 100 Then
Timer1.Stop()
End If
ProgressBar1.Value = i - 1
Label1.Text = i - 1
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
End Class
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static i As Integer
i = i + 1
ProgressBar1.Maximum = 100
If i > 100 Then
Timer1.Stop()
End If
ProgressBar1.Value = i - 1
Label1.Text = i - 1
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
End Class