如何在c#.net中创建透明面板 [英] How to create Transparent panel in c#.Net

查看:85
本文介绍了如何在c#.net中创建透明面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows窗体上有一个面板,面板内部没有几个控件,

I have a Panel on windows Form with few controls inside panel,

我可以使面板完全透明吗?

Can i make panel completely transparent.

(应该给人一种将控件直接放置在Form上的感觉)

(It should give the feel that controls are placed directly on Form)

推荐答案

如果转到BackColor属性,并将选择器更改为"Web",则第一个选择是透明"(至少在我的VB IDE中).我相信面板的BackColor会继承其所在组件的颜色.

If you go to the BackColor property, and change the Selector to "Web" the first choice is Transparent (at least it is in my VB IDE). I believe that the BackColor of the Panel would inherit the color of the component it is on.

这篇关于如何在c#.net中创建透明面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆