I want to populate my msflexgrid with lots of data from a database and it takes seconds for the process to complete. In that case, i need to include a progress bar that shows the progress of the process above and i do not know the code that will simultaneously show the progress on a progress bar.
I appreciate your contributions in advance. Thank you.
kcasmir
0
Newbie Poster
Recommended Answers
Jump to PostFor this first add a ProgressBar to your form.It is easy to increase the value of the progress bar.Just add another value.
I made an example.Here is the code to increase the Progress Bar.
Private Sub Form_Load() Timer1.Interval = 1 ProgressBar1.Max = 1000 End Sub Private …
Jump to PostIf you are using an object, i.e. ADO and a Do While Loop you could do something like...
Dim Cnt As Integer adoRs.MoveLast Prog1.Max = adoRs.RecordCount adoRs.MoveFirst Do While Not adoRs.EOF 'populate grid... Cnt = Cnt + 1 Prog1.Value = Cnt adoRs.MoveNext Loop
Good Luck
All 5 Replies
Vineeth K
10
Posting Whiz in Training
vb5prgrmr
143
Posting Virtuoso
omoridi
0
Junior Poster in Training
kcasmir
0
Newbie Poster
ImMoRtAl-
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.