|
-
Nov 24th, 2007, 06:57 AM
#1
Thread Starter
Frenzied Member
start up program with Progressbar
I would like to know how to use progressbar base on the time it taken to start up the program
I use progressbar and timer but I not involved the time taken to to start up the program
Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1.Value + 5
If ProgressBar1.Value = 100 Then
Timer1.Enabled = False
Unload Me
frmDateChecker.Show
frmMenu.Command9.Enabled = False
frmMenu.Command9.Visible = False
End If
End Sub
Last edited by matrik02; Nov 24th, 2007 at 07:24 AM.
-
Nov 24th, 2007, 07:19 AM
#2
Re: load system using Progressbar
Matrik,
system mean the time it took to boot the system or your program ?
-
Nov 24th, 2007, 07:24 AM
#3
Thread Starter
Frenzied Member
Re: start up program with Progressbar
Time it taken to start up the program. What i mean is the status with progress bar. I use Microsoft access database.
-
Nov 24th, 2007, 07:47 AM
#4
Frenzied Member
Re: start up program with Progressbar
matrik02, I've not used a progress bar, but there are plenty of threads about it here in the forums.
Take a look here.
I would guess you would get the number of records from the database and then divide that number by 100 and then increment your prograss bar by one each time.
E.G.
1000 records
Every 10 records loaded add 1 to you progressbar - assuming you have the total set to 100
Last edited by aikidokid; Nov 24th, 2007 at 07:50 AM.
Reason: added link
-
Nov 24th, 2007, 11:15 AM
#5
Re: start up program with Progressbar
To use a progressbar, you need something you can measure - like the number of records (amount processed so far versus the total amount) as aikidokid explained.
For more information (and alternatives for when you don't have something to accurately measure), see the article How can I use a progress bar? from our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page)
-
Nov 25th, 2007, 11:18 AM
#6
Thread Starter
Frenzied Member
Re: start up program with Progressbar
It is possible to used progress bar to measure the number of total records in the database plus the time taken by computer to process the program?
-
Nov 25th, 2007, 11:57 AM
#7
Frenzied Member
Re: start up program with Progressbar
 Originally Posted by matrik02
It is possible to used progress bar to measure the number of total records in the database plus the time taken by computer to process the program?
matrik02, yes it is in the way I described in my first post #2
-
Nov 26th, 2007, 01:47 AM
#8
Re: start up program with Progressbar
 Originally Posted by matrik02
It is possible to used progress bar to measure the number of total records in the database plus the time taken by computer to process the program?
Will process actually take up a significant amount of time to warrant creation of a progress bar? Your not building the progress bar just for aesthetic reasons? If it's really not necessary then your time is better spent improving other areas of your program.
-
Feb 8th, 2008, 07:52 AM
#9
Thread Starter
Frenzied Member
Re: start up program with Progressbar
 Originally Posted by aikidokid
matrik02, I've not used a progress bar, but there are plenty of threads about it here in the forums.
Take a look here.
I would guess you would get the number of records from the database and then divide that number by 100 and then increment your prograss bar by one each time.
E.G.
1000 records
Every 10 records loaded add 1 to you progressbar - assuming you have the total set to 100
I can't imagine without a sample code. I have many tables let say 10 tables.. How to get the total of records for each tables ?
-
Feb 8th, 2008, 08:03 AM
#10
Frenzied Member
Re: start up program with Progressbar
Like I saia matrik02, I haven't used one, but here is a sample code
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
|