Dave,
In addition to the other comments, I normally bind to the values of an Enum,
rather then the Names of an Enum.
Private Sub Form1_Load( _
ByVal sender As Object, _
ByVal e As EventArgs) Handles MyBase.Load
'Me.ListBox1.DataSource = _
' [Enum].GetValues(GetType(KnownColor))
Me.ListBox1.DataSource = _
[Enum].GetValues(GetType(FormBorderStyle))
End Sub
Private Sub ListBox1_SelectedIndexChanged( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles ListBox1.SelectedIndexChanged
'Me.ListBox1.BackColor = _
' Color.FromKnownColor( _
' DirectCast(ListBox1.SelectedItem, KnownColor) _
' )
Me.FormBorderStyle = _
DirectCast(ListBox1.SelectedItem, FormBorderStyle)
End Sub
Either names or values are equally easy, its largely personally choice...
Hope this helps
Jay
"Dave" <dave@4_rem_ove_scotts.com> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
How would I go about filling a combo box with some existing enumeration
values? Can I bind it to the enumeration? Then, once the selection is made
from the combo box, set a property to the enumeration value?
Dave