"Imran Koradia" wrote:
AFAIK, you cannot do that. Any particular reason you would want to do that?
Maybe there's some other way to achieve what you want to do. A little more
detail would certainly help.
Imran.
Well, what i'm trying to accomplish is the following:
To have a custom control with an enum property where the enum property
coincides with a value on the database. The custom control will use the enum
value selected to retrieve child values from the database. So the control
cares not about the description of the enum, it just uses the number.
So the idea is to be able to provide this descriptions according to the
project i'm using this custom control from.
If i'm using the control from project A then the enum should be:
public enum myenum
enumval0 = 0
enumval1 = 1
enumval2 = 2
end enum
and if from project B:
public enum myenum
otherval0 = 0
otherval1 = 0
otherval2 = 0
end enum
This is just to be able to use the control from different projects and give
the developer the intellisense functionality provided by enums