Changing Color

  • Thread starter Thread starter Mariame
  • Start date Start date
M

Mariame

Hello All
i have a label that i change his color Programmatically so i use the
following statment :
Label88.ForeColor = System.Drawing.Color.Red
but the problem that the color isnt known its "#004E98"

how could i change it?????????

Thx in Advance
 
..ForeColor = Color.FromArgb (0x0, 0x4E, 0x98); // C#
..ForeColor = Color.FromArgb (0, &H4E, &H98) // VB .NET

Hello All
i have a label that i change his color Programmatically so i use the
following statment :
Label88.ForeColor = System.Drawing.Color.Red
but the problem that the color isnt known its "#004E98"

how could i change it?????????

Thx in Advance
 
but the problem that the color isnt known its "#004E98"

I'm not sure I understand the question. "004E98" is definitely NOT red.
However, I can't seem to understand what you're trying to say, in terms of
what has happened to you. Are you saying that the ASPX page is rendering
System.Drawing.Color.Red as "#004E98"?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top