Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Red isn't a constant
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01064507
Message ID:
01064545
Views:
15
>Einar,
>
>You can't as Color.Red is not a constant however to get round this you can use the readonly modifier to achieve the same effect.
>
>private static readonly Color ROW_COLOR_OFF = Color.Red;
>
>Regards
>Neil

Yes that is kinda what I did but I am still courious as to why Red isn't constant :)

Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform