Changing colors in code

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

vs 2002 -- win xp -- web forms

I have the bgcolor of a form se to #00cc33

in my code i have
Dim WhatBackColor As System.Drawing.Color = System.Drawing.Color.DarkGreen
I cannot find an exact match to #00cc33

How can i use the hex number in my Dim statement?
Thank you
 
Hi,

Me.BackColor = ColorTranslator.FromHtml("&H00cc33")

Ken
---------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top