I've built a user control that includes an image. I have a scrolling panel
that contains a number of these controls, but when I scroll the panel the
controls flicker terribly as the Paint method gets continually called.
If I use native controls such as PictureBox controls, the images scroll
smoothly without flickering, so it must be possible.
JezB - 30 Oct 2005 20:07 GMT
I meant OnPaint ... and apart from drawing an image with Graphics.DrawImage
it does a number of other painting too (DrawText, DrawRectangle, etc, etc).
But it should still scroll smoothly right ?
> I've built a user control that includes an image. I have a scrolling panel
> that contains a number of these controls, but when I scroll the panel the
> controls flicker terribly as the Paint method gets continually called.
>
> If I use native controls such as PictureBox controls, the images scroll
> smoothly without flickering, so it must be possible.