I'm trying to make a Splash Screen 4 an Win application.
my setup:
form border style is set to none. start position is screen center.
background image of the form is set to a PNG file, with rounded edges and a "build in" drop shadow.
In code I've set:
this.SetStyle( ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle( ControlStyles.UserPaint, true);
this.SetStyle( ControlStyles.DoubleBuffer, true);
this.SetStyle( ControlStyles.SupportsTransparentBackColor, true);
this.AllowTransparency = true;
this.BackColor = Color.Transparent;
but when i test, it says that the form can't have a transparent background color.
i DO NOT want to set a transparency key, cuz it causes trouble with the dropschadow ( semi transparent part of the png )
also i dont want to set opacity to 0%, cuz it also effects my PNG.
in fact i just want ONLY my png shown as the window. additionaly there will be some dynamic text on top of it and a process bar in the future...
Any ideas? how to tell the form that is CAN have transparent background like the splash screen of ADOBE PHOTOSHOP CS5
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…