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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top