我试图将文本框的背景色设置为透明,以与表单的背景色融合。
我在下面尝试了以下方法。
TextBox1.BackColor = Color.Transparent 'This doesn't work it stays white'
有什么我想念的吗?
当我设置TextBox.BackColor
到Color.Transparent
,它抛出System.ArgumentException
。我收到此消息:
Unvalid property value, The control does not support transparent colors background
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句