How to have a "Loading..." Form
-
Hi Everyone, I have a small application that I am developing that takes a half minute or so to load up (lot of stuff going on). I am wondering what the best way to display a "Loading" form is. For example, if you've ever used Adobe Photoshop, when you launch the program, a dialog/form shows up center screen and it tells you that its loading textures, fonts, etc. I want to do the same thing in my application. Is the proper way to do this actually creating another form, showing that form in the main form onload event, and then destroying it after the loading process is complete? Thanks!!
-
Hi Everyone, I have a small application that I am developing that takes a half minute or so to load up (lot of stuff going on). I am wondering what the best way to display a "Loading" form is. For example, if you've ever used Adobe Photoshop, when you launch the program, a dialog/form shows up center screen and it tells you that its loading textures, fonts, etc. I want to do the same thing in my application. Is the proper way to do this actually creating another form, showing that form in the main form onload event, and then destroying it after the loading process is complete? Thanks!!
The normal way is to use another form with FormBorderStyle set to None and ShowInTaskbar set to false, and use a BackgroundWorker to do the initialization on a background thread, reporting progress back to this form so it can give feedback via a ProgressBar or whatever. Search for SplashScreen C# and you'll find many examples.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)