VB: Update progressbar on splashscreen

  • Thread starter Thread starter Phil - rather be golfing
  • Start date Start date
P

Phil - rather be golfing

Guest
I'm sure I had previously found the answer to this question, but can't find it now. I had it all working but inadvertently deleted my main form (created last year) and have lost the code.

Main form loads and displays a table of records. Form1_load goes through each record and looks up external data for updates and this takes noticeable time. I have a splash screen that comes up while the main form is loading and I want the splash screen to display the status in a progress bar named ProgBar. I recall the method used a 'delegate' and my SplashScreen1 uses this code:




Delegate Sub UpdateBar(ByVal X As Long)


Public Sub BarLong(ByVal MemCount)

ProgBar.Maximum = MemCount




End Sub


Public Sub ShowBar(ByVal SoFar)

ProgBar.Value = SoFar




End Sub

The main form already loops through each record and all I want it to do is update the progress bar if the splash screen is open.

Continue reading...
 
Back
Top