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
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