开发者

Transparent Form Background

开发者 https://www.devze.com 2023-01-29 07:02 出处:网络
I tried to se开发者_JAVA技巧t backcolor to transparent by solution given at msdn but failed is there any way to make background transparent

I tried to se开发者_JAVA技巧t backcolor to transparent by solution given at msdn but failed is there any way to make background transparent

http://msdn.microsoft.com/en-us/library/wk5b13s4(VS.71).aspx


Yes, set the form's TransparencyKey property. Make the BackColor the same value. You need to pick a color that won't appear anywhere else in the form. Color.Fuchsia is a good choice, it's a fuchsed-up color.

This isn't a good idea for a splash screen. The point of having one is that the user can see it. The linked MSDN article is only appropriate for (some) child controls, not the form.

0

精彩评论

暂无评论...
验证码 换一张
取 消