Since the running of the rest of the application is dependent on the loading of the database, do I even need to run the progress bar in a BGW? I am running the progress bar like this:
vb Code:
Me.ProgressBar1.Minimum = 0
Me.ProgressBar1.Maximum = CInt(fileSize)
Me.ProgressBar1.Value = 0
While ProgressBar1.Value < fileSize
Me.ProgressBar1.Value += 2
End While
Then displaying the label that states that the database is fully loaded.
EDIT
No I guess that won't work right, it takes longer for the database to load. I will try to get it to work in the BGW. And try to use the percentage as jmcilhinney suggetsed.