简体   繁体   English

我怎样才能使窗体背景透明而不能使其他控件透明

[英]how can I make just the Form background transparent but not other controls

Say I want to make just the very background of windows form transparent but keep the buttons and the groupboxes 100% NOT transparent and visible. 说我只想使Windows窗体的背景完全透明,但要使按钮和组框100%不透明和不可见。 Is there an easy way to do that?? 有一个简单的方法吗? thanks a lot! 非常感谢!

From form properties TransparencyKey choose a color. 从表单属性TransparencyKey选择一种颜色。 This color will be transparent so choose a rare color that is not used from your controls. 该颜色将是透明的,因此请选择控件中未使用的稀有颜色。 Then choose the same color for your form BackColor . 然后为表单BackColor选择相同的颜色。

valter 瓦尔特

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM