468,484 Members | 2,114 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Enumerations and ComboBoxes

This code works perfectly in a Windows Forms cbo:
Public Enum Colors

Black

Blue

End Enum

Me.cboColors.Items.AddRange([Enum].GetNames(GetType(Colors)))

But the same code does not work in a Web Forms cbo.

Any ideas how to get it to work?
--
Joe Fallon

Nov 20 '05 #1
0 671

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Plinkerton | last post: by
1 post views Thread by someone else | last post: by
1 post views Thread by Oleg Ogurok | last post: by
4 posts views Thread by ChrisB | last post: by
77 posts views Thread by Ben Finney | last post: by
2 posts views Thread by Matt | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.