• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

Splash screen improvement........

I have a splash screen in my app, but i want to make some improvement in my splash screen.....i want to include a progressive bar to show the loading progress time...and to wait to the app load.
How do i make that? How do i know when the entire app is loaded in memory, to hide my splash screen

Thanx in advance....
Mário Guedes
0
mguedes
Asked:
mguedes
  • 4
  • 3
  • 2
  • +1
1 Solution
 
watyCommented:
First, when your app is fiished to be loaded, it is better to unload your splash screen instead of hid it. It will take less memory.

Second, to add the progressive bar, you have to define how many points are needed in your bar and setting the value yourself in the code :

frmSplash :
    bar.Max = 10

    do work
   ....
    bar.value =1

    do work
   ....
    bar.value =2

and so...


When it is done, unload frmSplash
0
 
mguedesAuthor Commented:
Ok...but i need to know when my app finish to load...how can i make this?
How do i know how much time the app take to load?
0
 
topolCommented:
Nobody can know it better than you. Describe what application you have.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
BlackAndWhiteCommented:
What ever time it takes to complete the code in the Load event of your form is the time it takes to load approx..

Assume the functionality in the load event as 100%. Then divide the whole process into several subtasks and allocate certain percentage for each...

Manage the progress bar based on how much is completed...

All the code for running he statusbar would be in the load event of the form...

Activate would have shown the form..so there is no need to handle anything in that...


0
 
topolCommented:
Yeah, but how would you get into Load event of the form? Microsoft does not provide you with the code.
0
 
mguedesAuthor Commented:
How would you get into Load event of the form?
0
 
BlackAndWhiteCommented:
Write the code in the Form_load event of the main form (not the splash).  From the form_load of the main form, load the splash and manage the thermometer..
0
 
mguedesAuthor Commented:
ok it´s work's, thanx BlackAndWhite ;c).............
0
 
mguedesAuthor Commented:
ok it´s work's, thanx BlackAndWhite ;c).............

0
 
BlackAndWhiteCommented:
You are very welcome mguedes..
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now