|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Integer to colorI'm pulling a value from the db that is an integer, ie 6421504. I then want
to use these value to change the color of the text. How can I convert this integer value to a color in vb.net? Thanks, "Wonder" <Won***@discussions.microsoft.com> schrieb dim i as integer = 6421504> I'm pulling a value from the db that is an integer, ie 6421504. I > then want to use > these value to change the color of the text. How can I > convert this integer value to a color in vb.net? dim c as color c = System.Drawing.Color.FromArgb(i) Probably the Alpha channel is missing, so you'd have to use c = System.Drawing.Color.FromArgb(i or &Hff000000) Armin "Wonder" <Won***@discussions.microsoft.com> schrieb: Check out 'Color.From*' and the 'ColorTranslator' class.> I'm pulling a value from the db that is an integer, ie 6421504. I then > want > to use > these value to change the color of the text. How can I > convert this integer value to a color in vb.net? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Newbie Question: How To Open A File Non-Exclusively?
Web Service Deployment Issues Command line argument in NET Release Memory Drag Picturebox Prog execution in IDE works, fails when running exe Multiple result sets from Data Reader Iterating thru User-Defined Data Type Property Threading reference Passing multipe values for parameter |
|||||||||||||||||||||||