|
-
Jul 13th, 2006, 11:55 PM
#1
Thread Starter
New Member
Form that shows loading bar
how would i go about making a preload form that displays a loading bar and then loads the main mdi form after its finished...? here is an example
-
Jul 14th, 2006, 12:03 AM
#2
PowerPoster
Re: Form that shows loading bar
use splash screen form and a timer and a progress bar
-
Jul 14th, 2006, 01:16 AM
#3
PowerPoster
-
Jul 14th, 2006, 01:49 PM
#4
Thread Starter
New Member
Re: Form that shows loading bar
i get a bunch of errors when i try to load the project... when i open the prject file it says it cant find the form..
Edit:
never mind i got it to work but...
1) how do I add a progress bar (which component?)
2) how would i load the progress bar on the progress of the actual program loading rather than just a timer?
Last edited by Prophet-; Jul 14th, 2006 at 01:54 PM.
-
Jul 15th, 2006, 01:46 AM
#5
Addicted Member
Re: Form that shows loading bar
 Originally Posted by Prophet-
i get a bunch of errors when i try to load the project... when i open the prject file it says it cant find the form..
Edit:
never mind i got it to work but...
1) how do I add a progress bar (which component?)
2) how would i load the progress bar on the progress of the actual program loading rather than just a timer?
1. Use the component (Project -> Components), 'Microsoft Window Common Controls 5.0 (SP2)'
2. I don't really get what you're trying to ask , but you can use the Progressbar with the timer and setup steps of each load like this:
VB Code:
'add a timer named: Timer1
'add a progressbar named: ProgressBar1
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 500 '1/2 of a second
ProgressBar1.Value = 0
Me.Caption = "Loading..."
End Sub
'
Private Sub Timer1_Timer()
Dim num As Long
Select Case num&
Case 0
ProgressBar1.Value = ProgressBar1.Value + 10
'load some stuff
Case 1
ProgressBar1.Value = ProgressBar1.Value + 10
'load some stuff
Case 2
ProgressBar1.Value = ProgressBar1.Value + 10
'...etc, etc
Case 3
'last case , unload, goto mdi form
Unload Me
MDIForm1.Show
End Select
num& = num& + 1
End Sub
This is one way , of course theres other ways (some) much more sophisticated.
-
Jul 15th, 2006, 01:55 AM
#6
Re: Form that shows loading bar
the very simple example would be New Project->VB Application Wizard->Multiple Document Interface and Include Splash Screen at application startup when prompted...
that splash screen will be stayed only during the loading process without the timer...
As far as the progress bar is concerned you have to include the coding to increase the value of it till your project gets fully loaded...ie. your main form's loading time...
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Aug 8th, 2006, 12:01 AM
#7
PowerPoster
Re: Form that shows loading bar
 Originally Posted by Simply Me
I have attached a working copy. I hope this will help you and if you receive an answer to your question do take time to rate this post. 
error loading project ...
-
Aug 8th, 2006, 12:26 AM
#8
PowerPoster
Re: Form that shows loading bar
 Originally Posted by rory
error loading project ... 
Checked my previous attachment. Its now working. thanks for pointing that out rory.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|