all groups > dotnet general > december 2006 >
You're in the

dotnet general

group:

Combobox: fast filling with enumeration values?


Combobox: fast filling with enumeration values? herbert
12/29/2006 1:46:00 PM
dotnet general:
Is there a quick way to preload a ComboBox with all values of an Enumeration?
Either in VS.2005 Designer or at run time.

In my case the combobox is bound to a property of a business object.

Re: Combobox: fast filling with enumeration values? Stephany Young
12/30/2006 10:54:44 AM
MyComboBox.Items.AddRange([Enum].GetNames(GetType(MyEnumeration)))


[quoted text, click to view]

AddThis Social Bookmark Button