Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
With ProgressBar1
.Maximum = 100
End With
With Timer1
.Interval = 500 '// 1/2 sec. delay.
Me.Show() '// display Form before starting Timer.
.Start() '// start Timer.
End With
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static iCount As Integer = 0
If Not iCount = 10 Then
iCount += 1
ProgressBar1.Value += 10
Else
frmLogin.Show()
Me.Close() '// stops the Timer as well.
End If
End Sub
End Class
codeorder 197 Nearly a Posting Virtuoso
codeorder 197 Nearly a Posting Virtuoso
codeorder 197 Nearly a Posting Virtuoso
codeorder 197 Nearly a Posting Virtuoso
codeorder 197 Nearly a Posting Virtuoso
codeorder 197 Nearly a Posting Virtuoso
Alleyn commented: Amazingly Helpful +0