Hi,
I'm using a UserControl object for all the graphics handling in my
application. However, if I select an image and move it around, I get
flickering. So in order to get rid of the flickering, I added this code in
the constructor of the UserControl:
this.SetStyle(ControlStyles.AllPaintingInWmPaint |
ControlStyles.DoubleBuffer, true);
Now the control doesn't flicker, but I still get some minor flickering of
the image I am moving, and if I move the mouse too quickly, the image will
not "keep up" with the mouse pointer.
Any suggestions?