Using threading with splash form.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • blue_nirvana

    #1

    Using threading with splash form.

    I have a program that automatically checks for an updated version on the
    network and if it finds it, it retrieves the new version and restarts. I
    have a splash screen that has an animated gif picture with a message to let
    the user know it is searching for a newer version. This all works fine, but
    the gif picture does not move until after all the other code finishes. Below
    is how I'm using it:

    Dim frm as New Splash
    frm.ShowSplash( Me)
    'Run the AutoUpdate program code here
    If au.NeedToUpdate () = True
    frm.MainProgram IsReady() 'Close the splash screen
    Close 'Exit since the AutoUpdate program will call the newer version.
    Else
    frm.MainProgram IsReady() 'Closes the splash screen and continue.
    End If
    ....Other code here

    The gif picture only moves after the restart when a new version is
    available. I've tried using Threading, without much luck. Using Threading,
    the splash screen did not show up until after all the other code was done and
    even then I had an issue of notifying the threaded splash screen to close.
    Does anybody have any examples of doing something similiar to this? I just
    simply want the gif image on the splash form to move no matter what else is
    going on.


Working...