hi I have the following:
Dim infoArray As PropertyInfo() = GetType(Color).GetProperties
Dim info As PropertyInfo
For Each info In infoArray
Dim info2 As MethodInfo = info.GetGetMethod
If ((Not info2 Is Nothing) AndAlso info2.IsStatic) Then
Dim txtColourBox As New TextBox
txtColourBox.Text = info.Name
txtColourBox.BackColor = ???
flpMain.Controls.Add(txtColourBox)
End If
Next
what do I put instead of ??? to set the background colour to the info colour??
Thanks
Dim infoArray As PropertyInfo() = GetType(Color).GetProperties
Dim info As PropertyInfo
For Each info In infoArray
Dim info2 As MethodInfo = info.GetGetMethod
If ((Not info2 Is Nothing) AndAlso info2.IsStatic) Then
Dim txtColourBox As New TextBox
txtColourBox.Text = info.Name
txtColourBox.BackColor = ???
flpMain.Controls.Add(txtColourBox)
End If
Next
what do I put instead of ??? to set the background colour to the info colour??
Thanks