Solved

Stop blinking on textbox or other refreshes

Posted on 2003-11-24
5
273 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now