How can I list the enumeration items in a combo box?
-
Hi gurus, I would like to know how it is possible to insert in a combo box the text values of an enumeration object? For example, consider the
SymbolType
enum object from ZedGraph. I would like to browse the enumeration values and add them in a combo box in order to give to the user the possibility to select the symbol for the curve. I hope my question is clear enough. Best regards. Fred.There is no spoon.
-
Hi gurus, I would like to know how it is possible to insert in a combo box the text values of an enumeration object? For example, consider the
SymbolType
enum object from ZedGraph. I would like to browse the enumeration values and add them in a combo box in order to give to the user the possibility to select the symbol for the curve. I hope my question is clear enough. Best regards. Fred.There is no spoon.
-
Use
Enum.GetNames(typeof(SymbolType))
to get the names of the constants.Despite everything, the person most likely to be fooling you next is yourself.
-
Hi gurus, I would like to know how it is possible to insert in a combo box the text values of an enumeration object? For example, consider the
SymbolType
enum object from ZedGraph. I would like to browse the enumeration values and add them in a combo box in order to give to the user the possibility to select the symbol for the curve. I hope my question is clear enough. Best regards. Fred.There is no spoon.
Scott Dorman
Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai