Progress Bar

muhammadanzar

Member
Joined
Dec 25, 2005
Messages
18
Programming Experience
Beginner
Dear Developer's
hi
i have three forms in my application. First form use for the user selection criteria for the Report. But Report Loading take 2 to 3 minutes i want to show progress bar during this delay period. when i try to show progress bar it work nice but when form close method throw the Exception:)
 
Here is my code
Private
Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If ProgressBar1.Value < 100 Then
ProgressBar1.Value += 5
Else
Dim frm As Form1
ProgressBar1.Dispose()
frm.Close()
End If
 
Back
Top