I have a transparent rectangle on a picture box,if i click next,the next image comes and transparent rectangle is drawn.The problem is flickering,while moving from one image to another image,the transparent rectangle flickers.please help me how to get rid of this problem.i want to eliminate flicker,please help.
Thanks
How are you implementing it? I had a similar problem and implemented my own picturebox by inheriting from Control, overriding OnPaint to draw my image and transparent background etc, and also overriding OnPaintBackground and doing nothing. (The default behaviour of OnPaintBackground is to paint the background of the control, which you don’t need to do if you are controlling the painting of the whole control)
You can also implement double buffering in the OnPaint if needed to reduce tearing if your paint operations take time.