Hi,

I am very much new to .net Compact Framework.

I am creating a user control.I have to expose a custom property to the user so that he can select the value of the property among a predefined values.I found that we have to use enum.

That is I want to make the property in the designer be a dropdown list.
I have tried with the following code..


public enum ArrowColor { Red, Blue, Green, Magenta, Pink, Orange, Black, Yellow };

private ArrowColor m_arrowForeColor = ArrowColor.Blue;

public ArrowColor ArrowForeColor
{
get
{
return m_arrowForeColor;
}
set
{
this.m_arrowForeColor = (ArrowColor)value;
}
}

But i cannot see the peroperty on the properties window of the user control,when used the control in another application.

I tried by adding another test proeprty of type bool and it did work.i can see true and false values in the drop down.

Am i making any mistake?Do i need to do anything to make it work?

Appreciate the help in advance..