Click to See Complete Forum and Search --> : Flickering


medleyj
May 1st, 2001, 03:31 PM
My VB project has an Image control in it with several shape objects placed in front of it. During the Image's MouseMove Event (left mouse button down) I have the Image control and the shape objects move with the mouse. I use the move method to move the objects and the shapes. My problem is that when I move the Image and the shapes, these items flicker horribly.

Does anyone have any suggestions for minimizing the flicker. Ideally, I would like to completely eliminate the flicker, but I realize this may not be possible in VB.

Thanks in advance.

cksiow
May 1st, 2001, 07:47 PM
you might consider using another control, e.g. shape to represent the image when it's being moved like what windows do when u move a window, windows didn't move the actual window, but using a rectangular to represent it.

HTH

cksiow
http://vblib.virtualave.net - share our codes

shree
May 1st, 2001, 08:31 PM
The lightweight controls, the imagebox and the label cause much flicker. Using a picturebox instead of the imagebox should reduce the flicker. If you draw the shapes on the picturebox, using the picturebox's methods, instead of using shape controls, you'll experience much less flicker.

RayA
July 9th, 2003, 05:20 PM
You might try setting your object.visible = False then when you are done drawing it set it to true again