标签背景色不透明 [英] Label backcolor not going transparent

查看:193
本文介绍了标签背景色不透明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows窗体中将标签的BackColor属性设置为透明",但它只是白色?它不是透明的吗?

I've set a label's BackColor property to 'Transparent' in windows form but its just White? It's not going transparent?

有人知道为什么会这样吗?

Anyone know why this is happening?

推荐答案

标签不支持透明性,您必须创建自己的唯一自定义控件,才能看到这些代码示例.

The label does not support transparency, you must create your own unique custom control, you can see these code examples.

http://www.codeproject.com/KB/dotnet/transparent_controls_net.aspx http://www.codeproject.com/KB/vb/uLabelX.aspx

这篇关于标签背景色不透明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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