0

Possible Duplicate:
How to fix the flickering in User controls

my textbox flickers when it updates the text.
I update my textbox with a timer that ticks every 100 ms. (See it as a log window).

Question
How can I prevent this flickering?

Thanks!

Community
  • 1
  • 1
Yuki Kutsuya
  • 3,968
  • 11
  • 46
  • 63

1 Answers1

2

I think you should either:

a) Slow down the tick rate of your timer

b) Enable double buffering

c) Put Application.DoEvents() right after the line which adds text to the TextBox

This is more of a workaround solution, though. I'd just lower the tickrate.

beta
  • 2,583
  • 15
  • 34
  • 46