Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set an objects backcolor using Int Value
Message
From
11/07/2006 17:33:36
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01135513
Message ID:
01135529
Views:
9
>I am trying to set an object (dbi-tech Schedule.NET) backcolor and forecolor with values that are stored for a record in the database. The database is storing them as an Int value.
>
>Thanks for anyhelp.
>
>Kirk

Kirk,

Assuming that the color value in the database is an RGB value, use:
.BackColor = System.Drawing.Color.FromArgb(i)
Previous
Reply
Map
View

Click here to load this message in the networking platform