I'm trying to use Enum Const
Public Enum objColor
lowLight = System.Drawing.SystemColors.ControlLight
HighLight =System.Drawing.SystemColors.ControlDark
End Enu
Convert from VB6 to vb.NET Error is Declaration type not supported: Enum member of type color.
Any hints/help please.
Cheers,
PB

Amit ChoudharyRank #145 · 15.8K reputationPosted May 2, 2010, 9:32 PM EDT
well change
lowLight = System.Drawing.SystemColors.ControlLight
to
lowLight = System.Drawing.Color.ControlLights;
Please mark "Do you like this post" if it helps you.
Prabhu Basoor11 reputationPosted May 2, 2010, 10:00 PM EDT
Amit ChoudharyRank #145 · 15.8K reputationPosted May 3, 2010, 1:20 AM EDT
you must use syntax like this:
Please mark "Do you like this post" if it helps you.