When working with enums, you need to write additional attributes to get what you are looking for. Here is the code:
<TypeConverter(GetType(EnumConverter)), DefaultValue(GetType(MyEnum), "Option1")> _
Public Shadows Property MyProp() As MyEnum
Get
Return MyVar
End Get
Set(ByVal value as MyEnum)
MyVar = value
End Set
End Property
>"DefaultValue(MyEnum.Option1)" _
>public shadow property MyProp () as MyEnum
>> get
>> return MyVar
>> end get
>> set(byval value as MyEnum)
>> MyVar = Value
>> end set
>>end property
>
>i wrote the first instructions between quotes because it seems like this editor just erase the previous post first instruction. instead of less than sign and more than sign.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi