status bar moving as a timer counts

Posted on 2003-03-28
Medium Priority
Last Modified: 2010-05-01

Should be a simple thing... I want to use a status bar in a form. I want the "loading" part of it to gradually increase as a timer counts. If this isn't possible, how would you do this simply using a Progress Bar?


Question by:jm_jackson
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 8227594
Not sure I understand what you mean about the status bar but a progress bar is very simple.

progressbar1.value = 0
Progressbar1.max = timer_at_100_pct 'the full value

in your "load" loop:

Do Until timer_count = timer_at_100_pct
    timer_count = timer_count + 1
    progressbar1.value = timer_count
MsgBox "Loaded"

Accepted Solution

trkcorp earned 200 total points
ID: 8227619
on the status bar you could just "show" the count...

Do Until timer_count = timer_at_100_pct
   timer_count = timer_count + 1
   progressbar1.value = timer_count
   StatusBar1.Panels(1).Text = "Current Count: " & timer_count
   'me.refresh if necessary, but usually isn't...
MsgBox "Loaded"

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question