[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Stop blinking on textbox or other refreshes

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
Jeremy Daley
Asked:
Jeremy Daley
  • 2
2 Solutions
 
SeeOneCommented:
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
 
SeeOneCommented:
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
 
GrahamSkanCommented:
If you're not showing seconds, don't update it every second. Check whether the minute has changed & only update it when necessary.
0
 
Jeremy DaleySenior DeveloperAuthor Commented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now