I think you have asked this before. You cannot use build-in double buffering
with transparent controls. You need to maintain you own bitmap and blend it
with the background. If you need really simple transparency (e.g
rounded-corner buttons) take a look at control's Region property
--
HTH
Stoitcho Goutsev (100) [C# MVP]
"°Ë´óɽÈË" <zh**********@hotmail.com> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
HI,
I create a custom transparent control, set the style is
ControlStyles.DoubleBuffer, It display black background. How
to create a double buffer transparent control?
The ralative code is:
// in constructor
base.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.StandardClick
| ControlStyles.Opaque, true);