Instead of an Enum, you better use a
Dictionary[
^] for this. A dictionary is a collection of keys and values, so for example, you can use
"5 frames"
as key and
11
as value:
First, in your constructor, add the keys/values to the dictionary:
Public Class YourClass
Private IPCamFrameRates As New Dictionary(Of String, Integer)()
Public Sub New()
IPCamFrameRates.Add("Max", 0)
IPCamFrameRates.Add("20", 1)
IPCamFrameRates.Add("15", 3)
IPCamFrameRates.Add("10", 6)
IPCamFrameRates.Add("5 frames", 11)
End Sub
And to get a value from the dictionary, try this:
If IPCamFrameRates.ContainsKey(yourKeyFromComboBox) Then
Dim result As Integer = IPCamFrameRates(yourKeyFromComboBox)
Else
End If