Dim color As Colors = RGB(255.192.192) 想定义个变量用来给 Textbox 赋背景颜色
如题:
Dim color As Colors = RGB(255.192.192) 会错,怎么解决?
[解决办法]
不是Colors,而是Color,如下:
Dim color As Color = System.Drawing.Color.FromArgb(255, 192, 192)
Me.TextBox1.BackColor = color