Progress Bar Flicker

C

Craig

Hello.

I'm using Access 2k. I have a form with a progress bar (not syscmd). This
progress bar is built using 2 labels (the background label is transparent,
the foreground label is not - and it progresses (grows) based on the
incremental percentage). This is a common alternative to the syscmd option,
and as a matter of fact, I probably got the idea and code from this forum.

My issue is this: The progress bar flickers as it is progressing. This is
not a vital error by any means, but quite annoying to the users (and myself).

Any help would be appreciated.

Thanks.
 
S

Stuart McCall

Craig said:
Hello.

I'm using Access 2k. I have a form with a progress bar (not syscmd).
This
progress bar is built using 2 labels (the background label is transparent,
the foreground label is not - and it progresses (grows) based on the
incremental percentage). This is a common alternative to the syscmd
option,
and as a matter of fact, I probably got the idea and code from this forum.

My issue is this: The progress bar flickers as it is progressing. This
is
not a vital error by any means, but quite annoying to the users (and
myself).

Any help would be appreciated.

Thanks.

Here's a snippet from my progress bar form:

Public Sub Update()
'Called when an update to
'the progress bar is required (each time round loop)

m_NewCount = m_NewCount + 1
With Me
.Flood.Width = (.MaxWidth.Width / (m_MaxCount - 1)) * m_NewCount
.Repaint
End With
End Sub

m_NewCount is defined at module level as a long. m_MaxCount is also
module-level and is also a long. This holds (eg) rs.RecordCount.

Me.MaxWidth is the 'container' label, Me.Flood is the label that grows l to
r.

This setup doesn't flicker at all (or more accurately, it probably does but
the effect is unnoticeable).
 

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