Label backcolor not going transparent

£可爱£侵袭症+ 提交于 2019-12-20 02:28:08

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/6622052/label-backcolor-not-going-transparent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!