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 ChoudharyPosted May 3, 2010, 5:20 AM
you must use syntax like this:
Please mark "Do you like this post" if it helps you.
Prabhu BasoorPosted May 3, 2010, 2:00 AM
Amit ChoudharyPosted May 3, 2010, 1:32 AM
well change
lowLight = System.Drawing.SystemColors.ControlLight
to
lowLight = System.Drawing.Color.ControlLights;
Please mark "Do you like this post" if it helps you.