Simon,
Include the following in your Form or Control's constructor.
' Stop the flicker
Me.SetStyle(ControlStyles.UserPaint, True)
Me.SetStyle(ControlStyles.DoubleBuffer, True)
Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True)
Me.SetStyle(ControlStyles.ResizeRedraw, True)
Me.UpdateStyles()
This needs to be in the class you are painting ON, which can be different
then the object where the paint handler is. I normally handle the Paint
event in the same class that I am painting on.
Hope this helps
Jay
"Simon Jefferies" <si***@cooltoolsonline.co.uk> wrote in message
news:ON**************@TK2MSFTNGP11.phx.gbl...
Hello,
I am using the Paint event to draw graphics, but I am getting annoying
flickering. Is there anyway to perform double-buffering?
I have looked at creating a bitmap, but is limited in what I can do with it.
Any ideas?
Thanks
Simon Jefferies
si***@cooltoolsonline.co.uk