Administrator VB.NET Forum Admin Joined Jun 3, 2004 Messages 1,462 Programming Experience 10+ Nov 6, 2004 #1 I have a color #003399 that I need to set to a label's backcolor. How would I do this?
JuggaloBrotha VB.NET Forum Moderator Staff member Joined Jun 3, 2004 Messages 4,530 Location Lansing, MI; USA Programming Experience 10+ Nov 7, 2004 #2 this isnt the exact colour but it's pretty close: Label1.BackColor = Color.Blue i dont know how to set a color by hex, only the color object Upvote 0 Downvote
this isnt the exact colour but it's pretty close: Label1.BackColor = Color.Blue i dont know how to set a color by hex, only the color object
Administrator VB.NET Forum Admin Joined Jun 3, 2004 Messages 1,462 Programming Experience 10+ Nov 7, 2004 #3 Found it: MyControl.BackColor = ColorTranslator.FromHtml("#003399") Upvote 0 Downvote