VB.net splash screen with progress bar WHILE main form loads

I have a form that I want to be started as a splash screen. It has a progress bar and labels that are updated while the main form loads and gathers file system information into listboxes.

I then want the splash screen to close after progress bar is full.

How can I accomplish this?
MaxDes101Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul_Harris_FusionCommented:
Simply show the splash screen as a non-modal form i.e.  Show rather than ShowDialog

In your main form initialisation routine.....

dim splash as new MySplashScreenForm

Try
   splash .Show

   ' do stuff here include lines to update progress bar on splash
   splash.progress = 90

Finally
   splash .Close

End Try
0
MaxDes101Author Commented:
it tells me the mysplashscreenfrom type is not defined....
0
Paul_Harris_FusionCommented:
You have to create a form to represent the splash screen - in my example I assumed the form is called MySplashScreenForm.

Design the splash screen just like any other form by placing controls (such as a progress bar) on its surface.


0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Mike TomlinsonMiddle School Assistant TeacherCommented:
What version VB.Net you working with?
0
MaxDes101Author Commented:
visual studio 2008 pro
I have it coded as you suggested. testing now.

0
MaxDes101Author Commented:
I have tried this and the splash screen's label and progressbar don't update and the window looks frozen. Then the main form opens.

0
MaxDes101Author Commented:
Just figured it out on my own.

Just made form2 the splash via settings not code. Changing label so the label text is not default so it doesn't look so bad.

Thanks anyhow.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.