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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MaxDes101Connect With a Mentor Author 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
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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

From novice to tech pro — start learning today.