C # panel .BackgroundImage + transparent Controls = flicker?

I have a Panel with jpg BackgroundImage (with BackgroundImageLayout = Stretch ). In the Controls panel, I add several PictureBoxes with PNG, which has transparent borders. Displaying this does not give any problems, but moving (boxes are draggable) PictureBoxes does.

As a result, the motion of the PictureBox β€œviolates” BackgroundImage and slows down performance. The faster I drag the field, the more it bothers BackgroundImage and vice versa.

How to solve this problem?

0
source share
2 answers

Double buffering should help.

+4
source

Check this out: http://msdn.microsoft.com/en-us/library/b367a457.aspx

All you have to do is enable double buffering when using the property in the form.

+1
source

All Articles