Solved

Splash screen improvement........

Posted on 1998-08-12
10
254 Views
Last Modified: 2010-04-30
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
Comment
Question by:mguedes
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 14

Expert Comment

by:waty
Comment Utility
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
 

Author Comment

by:mguedes
Comment Utility
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
 

Expert Comment

by:topol
Comment Utility
Nobody can know it better than you. Describe what application you have.
0
 
LVL 1

Expert Comment

by:BlackAndWhite
Comment Utility
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
 

Expert Comment

by:topol
Comment Utility
Yeah, but how would you get into Load event of the form? Microsoft does not provide you with the code.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:mguedes
Comment Utility
How would you get into Load event of the form?
0
 
LVL 1

Accepted Solution

by:
BlackAndWhite earned 20 total points
Comment Utility
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
 

Author Comment

by:mguedes
Comment Utility
ok it´s work's, thanx BlackAndWhite ;c).............
0
 

Author Comment

by:mguedes
Comment Utility
ok it´s work's, thanx BlackAndWhite ;c).............

0
 
LVL 1

Expert Comment

by:BlackAndWhite
Comment Utility
You are very welcome mguedes..
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now