progress bar

M

Martin

Hello, Can anyone tell me how to insert a progress bar on
a form and initialize it, so that it seems as if it is
working. What I am trying to do is just create a dummy
progress bar for my splash screen, as a visual effect. I
inserted a bar using the ActiveX controls, I just don't
know how to initialize it.
Thanks,
Martin
 
A

Allen Browne

SysCmd() provides a way to mess with a status meter, using acSysCmdInitMeter
and acSysCmdUpdateMeter.

Alternatively, you could just use a label on a form and keep adding block
characters to it.
 
A

Allen Browne

SysCmd() provides a way to mess with a status meter, using acSysCmdInitMeter
and acSysCmdUpdateMeter.

Alternatively, you could just use a label on a form and keep adding block
characters to it.
 
S

sam

The following should work fine for you:
progress bar is named ocxProgressBar1
You can set the values for minimumm, maximum and increment
instead of using text boxes on the screen.


Private Sub cmdShowNewProgress_Click()
Dim intCounter As Integer
'-- Initialize the Progress controls
Me!ocxProgressBar1.Min = Me.txtminimum
Me!ocxProgressBar1.Max = Me.txtmaximum
'-- Increment the Value properties for the Progress
controls
For intCounter = Me.txtminimum To Me.txtmaximum Step
Me.txtincrement

Me!ocxProgressBar1.Object.Value = intCounter

Next intCounter

Beep
MsgBox "Progress bar complete"
End Sub
 
S

sam

The following should work fine for you:
progress bar is named ocxProgressBar1
You can set the values for minimumm, maximum and increment
instead of using text boxes on the screen.


Private Sub cmdShowNewProgress_Click()
Dim intCounter As Integer
'-- Initialize the Progress controls
Me!ocxProgressBar1.Min = Me.txtminimum
Me!ocxProgressBar1.Max = Me.txtmaximum
'-- Increment the Value properties for the Progress
controls
For intCounter = Me.txtminimum To Me.txtmaximum Step
Me.txtincrement

Me!ocxProgressBar1.Object.Value = intCounter

Next intCounter

Beep
MsgBox "Progress bar complete"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top