Click to See Complete Forum and Search --> : VB KnownColor to ASP.NET 2.0


birre
04-24-2007, 08:12 AM
Hi,

I have a small problem with the conversion of KnownColors to ASP.NET colors. All the values are showing Color Black.

The value of the KnownColors are stored in a database, and show like this :
16777088
8355711
-2147483633

The values show up on my datagrid, an now i'm trying to do this :

Dim c As Color = System.Drawing.Color.FromKnownColor(DS.Tables(0).Rows(i).Item(7))
b.BackColor = Color.FromArgb(c.ToArgb)


But everything is black...

I already tried searching MSDN, but no result so far :mad:

tnx