471,059 Members | 1,284 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,059 software developers and data experts.

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 685

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.