ListBox DrawItem flicker

G

Guest

Hello,

I'm trying to create an owner drawn ListBox to display video footage. Every
frame of video, I call myListBox.Invalidate(). I draw each frame using the
'Graphics.DrawImage' method. If I subscribe to the 'DrawItem' event to draw
my items, they flicker. If I set the control styles 'AllPaintingInWmPaint'
and 'UserPaint' to true and override the 'OnPaint' method, I can draw the
video without flicker, but then I've lost support for drawing individual
items and scrolling. I'm already setting the 'OptimizedDoubleBuffer' style
to true while using both methods. Are there any parameters I can change to
prevent flickering in the 'DrawItem' event handler?
 

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

Top