Using Backgroundworker to show progressbar in Form1 while Form2 loads
Posted on 2006-05-16
I am trying to display a progressbar in Form1 while Form2 loads using VB 2005. Once Form2 loads, I want to hide Form1. The most important aspect of this task is that I do not want to have a counter or timer controlling the progress of the progressbar. Since Form2 could take between 30-90 seconds to load, I want to update the progressbar from the Load event for Form2. I have struggled using delegate and invoke to update the progressbar with no success. I have found a similar example on this site, but the example uses a counter to update the progress bar. Any suggestions?