For Each c As Winform.Control In e.Form.Controls
Dim Value1 As String = "Color.LightSkyBlue|Color.DarkTurquoise|Color.DarkCyan|Color.MediumTurquoise|Color.MediumAquamarine|Color.Olive|Color.DarkKhaki|Color.Orange|Color.FireBrick"
Dim sps1() As Char = {"|"}
Dim Names1() As String = Value1.Split(sps1)
For Each Name1 As String In Names1
c.BackColor = Name1
' Output.Show(Name1)
Next
Next
---------------------------
错误
---------------------------
编译错误:类型“String”的值无法转换为“System.Drawing.Color”。
错误代码:c.BackColor = Name1
---------------------------
确定
---------------------------