By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,022 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,022 IT Pros & Developers. It's quick & easy.

Can't set transpparent control as doublce buffer

P: n/a
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);
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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);

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.