ProgressBar控件的使用(VB.NET)
代码中用到两个控件:ProgressBar1(ProgressBar控件)和Timer1(Timer控件)
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.ProgressBar1.PerformStep()
If Me.ProgressBar1.Value >= Me.ProgressBar1.Maximum Then
Me.Timer1.Enabled = False
End If
End Sub
Me.ProgressBar1.PerformStep()
If Me.ProgressBar1.Value >= Me.ProgressBar1.Maximum Then
Me.Timer1.Enabled = False
End If
End Sub