C# Panel.BackgroundImage + transparent Controls = flickering?
Asked Answered
A

1

0

I've got a Panel with a jpg BackgroundImage (with BackgroundImageLayout = Stretch). On the panel it's Controls I add some PictureBoxes with a PNG which has transparent borders. Displaying this doesn't give any problems, but moving (the boxes are draggable) the PictureBoxes does.

The result is that the moving PictureBox "disturbs" the BackgroundImage and slows down performance. The faster I drag the box, the more it disturbs the BackgroundImage, and vice versa.

How to solve this problem?

Adigun answered 28/12, 2009 at 16:15 Comment(0)
B
1

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

All you need to do is turn double-buffering on using the property on the Form.

Bengali answered 28/12, 2009 at 17:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.