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

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

   splash .Show

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

   splash .Close

End Try
MaxDes101Author Commented:
it tells me the mysplashscreenfrom type is not defined....
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.

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?
MaxDes101Author Commented:
visual studio 2008 pro
I have it coded as you suggested. testing now.

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.

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.

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.