Solved

Stop blinking on textbox or other refreshes

Posted on 2003-11-24
5
283 Views
Last Modified: 2012-05-04
i have a digital time clock that displays at the top of my screen and runs on top of all applications. i have noticed with this program and many others that when you refresh something on a regular time-base (every second)...it blinks every once in a while.

why does it blink sometimes and not all the time? is there anyway to stop it from blinking.

i have also made many progress bars by using a colored textbox lying within a picturebox. when the progress goes up, it blinks. this is just another example.

your help is appreciated...thanks,
jeremy
0
Comment
Question by:daleyjem
  • 2
5 Comments
 

Accepted Solution

by:
SeeOne earned 30 total points
ID: 9815082
It sounds like you're referring to flicker.  When you have something that is constantly being updated, Windows has to constantly redraw the control with the new values.  Sometimes, depending on the power of your CPU, you see that drawing effect as it updates.

Depending on the control you use, there may be various ways to reduce the flicker, but usually, especially with constantly updated textboxes or labels, you will see that flicker every now and then no matter what.
0
 

Expert Comment

by:SeeOne
ID: 9815090
Forgot to mention, it really varies depending on your CPU power, the more powerful your computer is, and the more resources you have free, the less that flicker becomes evident.
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 20 total points
ID: 9816866
If you're not showing seconds, don't update it every second. Check whether the minute has changed & only update it when necessary.
0
 
LVL 4

Author Comment

by:daleyjem
ID: 10166996
the thing is, this clock needs to update every second because it is relevant to a computer timecard, and every second is important to an employee. i'll just split this one.
0

Featured Post

Industry Leaders: 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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

685 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