- Version
- Download 147
- File Size 76.31 KB
- File Count 1
- Create Date February 27, 2016
- Last Updated February 27, 2016
Progressbar Demo in Visual Basic.Net
A progress bar is a graphical control element used to visualize the progression of an extended computer operation.
Splash screen or start up form is the first form that we usually see when we open a program or an application
Here is the sample code:
ProgressBar1.Value = ProgressBar1.Value + 1
lblpercent.Text = ProgressBar1.Value / ProgressBar1.Maximum * 100 & " %"
If ProgressBar1.Value > 1 And ProgressBar1.Value < 30 Then
lblload.Text = "Loading program..."
Else
If ProgressBar1.Value > 30 And ProgressBar1.Value < 60 Then
lblload.Text = "Loading components..."
Else
If ProgressBar1.Value > 60 And ProgressBar1.Value < 100 Then
lblload.Text = "Loading database...please wait"
End If
End If
If ProgressBar1.Value = ProgressBar1.Maximum Then
Timer1.Stop()
MessageBox.Show("Welcome")
Me.Close()
Exit Sub
End If
End If