enum and combo 
Author Message
 enum and combo

is it possible to load a combo box with all the values of an enum ?!

public enum Mine {A,B}

foreach|for ???
combobox1.items.add(???);

thx
cod3r



Sat, 18 Jun 2005 16:36:00 GMT  
 enum and combo
comboBox1.Items.AddRange(Enum.GetNames(typeof(Mine)));


Quote:
> is it possible to load a combo box with all the values of an enum ?!

> public enum Mine {A,B}

> foreach|for ???
> combobox1.items.add(???);

> thx
> cod3r



Sat, 18 Jun 2005 18:57:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. typedef enum as subset of another enum

2. enum - enum ?

3. enum - enum ?

4. Enum on Hashtable help !

5. How to enum DirectoryEntries without foreach in C#??

6. Getting back int value from Enum?

7. ADSI:IIS properties, who to enum

8. enum and C2825

9. getting at a managed enum in an unmanaged class

10. enum/c++/ms visual C++.net

11. using C# enum types in unmanged C++

12. ATL enum

 

 
Powered by phpBB® Forum Software