Colors

  • Thread starter Thread starter pushpendra vats
  • Start date Start date
P

pushpendra vats

u just have to write the code as

button1.backcolor=color.red

thats it
 
i know that ...

but ff808040 is not Red its some color that the colordialog1 returns when i click on it ... so i cant really use it the way i use any other colored returned by the colordialog1 (ex: red,white,black, etc...)
 
he's trying to convert what people now think of as "HTML Colors" to a color
her can use in the app
 
Hi Brian,
he's trying to convert what people now think of as "HTML Colors" to a color
her can use in the app

And I have a routine for it however JavaScript and was curious if I would
spent some time in it, however I saw it is not needed.

:-)

Cor
 
Isn't it just...

Dim col As System.Drawing.Color
ColorDialog1.ShowDialog()
col = ColorDialog1.Color
Me.BackColor = col

(....I've never used the ColorDialog before so I may have something
fundamentally wrong.)


Will said:
i know that ...


but ff808040 is not Red its some color that the colordialog1 returns when
i click on it ... so i cant really use it the way i use any other colored
returned by the colordialog1 (ex: red,white,black, etc...)
 
Hi,

Button1.BackColor = System.Drawing.ColorTranslator.FromHtml(&HFF808040)



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