Transparent Background UserControl/Custom DoubleBufferedPanel in WinForms causing tearing issues

I am creating a WinForm dialog in my application in which I render a tree. The main dialog contains of a custom DoubleBufferedPanel (which inherits from Panel but with DoubleBuffering set to true), and custom user defined controls, which have a transparent background as well. I 'removed' the scrollbars on the panel, and made it draggable, so you can drag yourself around the family tree. But when dragging I have a lot of tearing in both panel and user controls and its driving me crazy. Is there anyone here that might want to help me solve this?
No description
7 Replies
Sirrianus Dagovax
Sirrianus DagovaxOP7mo ago
When I assign them with a solid color, the tearing goes away
Buddy
Buddy7mo ago
WinForms lacks transparency support Prefer WPF or AvaloniaUI
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Sirrianus Dagovax
Sirrianus DagovaxOP7mo ago
Yes I know but I have a huge winform application, not WPF lol
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Sirrianus Dagovax
Sirrianus DagovaxOP7mo ago
I set backColor to Lime for both panel and controls and used transparency key on the form. But now dialog is transparent completely there.
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?