Mondeo
Centurion
Hi,
Got an enumeration which i've iterated through and added its members to a combobox.
When the user selects a scheme I need to store the integer value of the enum in my database, but how do I access it?
cboPalletteSelect.SelectedItem only returns a string, how to I get the underlying index of the selected enum?
Thanks
Got an enumeration which i've iterated through and added its members to a combobox.
Visual Basic:
Dim s As New Nevron.UI.WinForm.Controls.ColorScheme
Dim schemes As Array
schemes = system.Enum.GetValues(GetType(Nevron.UI.WinForm.Controls.ColorScheme))
Dim scheme As Nevron.UI.WinForm.Controls.ColorScheme
For Each scheme In schemes
cboPalletteSelect.Items.Add(scheme)
Next
When the user selects a scheme I need to store the integer value of the enum in my database, but how do I access it?
cboPalletteSelect.SelectedItem only returns a string, how to I get the underlying index of the selected enum?
Thanks