Splashscreen +startup

J

John Wright

I have a program that needs to pre-load some drop down data. I put a
background worker on the main form and during the form startup I call another
form I call frmStatus that has an animated Icon and label that is set then
displayed. I call the form show first then the
backgroundworker.runworkerasync (parameter) method that starts the thread to
download the data for initialization. When the thread is worker complete, I
hide unload the frmStatus. This works great when the program is loaded and I
need to retieve mainframe data, but when I am starting up the program I need
frmStatus to show with the animated icon to let the user know I am
initializing the form. However, I just get the outline of the frmStatus, the
main form freezes until the background thread comes back and closes the
frmStatus.

I have thought about displaying a splash screen that would show the status
of the form initializing, but I can't find any good articles or code on how
to do this. I can create the splash screen and display it and hide the main
form, but I can't update a label on the splash screen. Can anyone point me
to a sample where this is done.

Thanks.

John
 
R

Ryan S. Thiele

I would create a SplashScreen form. Place a property inside it linking to
the label you want to update.

Public Property StatusTest as String
Get
Return MyStatusLabel.Text
End Get
Set (value as string)
MyStatusLabel.Text = value
End Get
End Property

Good Luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top