简体   繁体   English

如何使表格完全透明

[英]How to make the form completely transparent

I already made the background transparent but there is still some part left from the group box. 我已经使背景透明了,但是组合框中还剩下一些部分。 How do I make those transparent also? 我也该如何使它们透明?

The blank line are what I want it to be transparent. 空行是我想要的透明行。 It should give you the picture of what I want. 它应该给你我想要的图片。 Thanks. 谢谢。 替代文字

And don't even ask what are the password for, all of them are just dummies :) 而且甚至不用问密码是什么,它们都只是假的:)

If you want to see and edit the code, here 如果您想查看和编辑代码,请点击此处

That's just how the GroupBox control works. 这就是GroupBox控件的工作方式。 The Background property of that control includes the area that your screenshot points to. 该控件的Background属性包括屏幕快照指向的区域。 If you wanted to do a workaround for it, you should set the GroupBox background to be transparent as well, and draw a white box behind it, encompassing only the area you want to be white. 如果要解决此问题,则应将GroupBox背景也设置为透明,并在其后面绘制一个白色框,仅包含要成为白色的区域。

Form.Opacity对您不起作用?

What is the GroupBox's parent container? GroupBox的父容器是什么? Is it a Form or a Panel? 是表格还是面板? Is that element also set to transparent? 该元素也设置为透明吗? As a test I made a GroupBox and placed it on top of (inside) a Panel. 作为测试,我制作了一个GroupBox并将其放置在Panel的顶部(内部)。 I changed the background color of the Panel to red and the background color of the GroupBox to transparent and those ares of the GroupBox are properly transparent. 我将面板的背景色更改为红色,将GroupBox的背景色更改为透明,并且GroupBox的这些区域正确地透明了。 My suggestion is to look at the parent container. 我的建议是查看父容器。

Also the GroupBox label may become hard to read in some cases, once the top strip is transparent. 此外,一旦顶部条透明,GroupBox标签在某些情况下可能变得难以阅读。

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

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