Flickerless Panel Control... how?

  • Thread starter Thread starter Ellery Familia
  • Start date Start date
E

Ellery Familia

I have a RichTextBox contained by a Panel control... I draw line numbers in
the Panel control for each line in the RTB. The thing is, when the RTB is
scrolled, the numbers flicker. Any suggestions?

Ellery Familia
 
nevermind all... i got it.
I simply need to inherit my panel control, and in the constructor,
SetStyle(ControlStyles.AllPaintingInWmPaint Or ControlStyles.DoubleBuffer,
True)

excuse the vb =]

Ellery Familia
 
Back
Top