Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

looping through vb.net colours

Status
Not open for further replies.

griffitd

Programmer
Aug 20, 2002
189
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top