I'm working on an ESRI-Addin written in vb.net. I have a FeatureClass with subtypes (POI with categories). Each subtype (category) has a coded value domain defining the subcategories.
I managed to populate one combobox with the categories. See code below:
Public Class frmFind
Private Sub frmFind_Load(sender As Object, e As EventArgs) Handles MyBase.Load
PopulateCategory()
End Sub
Private Sub PopulateCategory()
Dim pFeatureClass As IFeatureClass = GetFeatureClass()
Dim pSubtypes As ISubtypes = pFeatureClass
Dim eSubtypes As IEnumSubtype = pSubtypes.Subtypes
eSubtypes.Reset()
Dim rCode As Integer
Dim rName As String
cmbCategory.Items.Clear()
Dim dicCategories As New Dictionary(Of Integer, String)
rName = eSubtypes.Next(rCode)
Do While rName <> ""
dicCategories.Add(rCode, rName)
rName = eSubtypes.Next(rCode)
Loop
cmbCategory.DataSource = New Windows.Forms.BindingSource(dicCategories, Nothing)
cmbCategory.DisplayMember = "Value"
cmbCategory.ValueMember = "Key"
End Sub
...
End Class
Now I want to populate the second combobox with the subcategories based on the selection in the first combobox.
I'm struggling to get only the domains and not all features of that category. Could anybody familiar with ArcObjects give me hint?