Hi Jillian,
The Custom Parser Name should be registered with the " ESRI.ArcGIS.ADF.CATIDs.AnnotationExpressionParsers " category.
The component category registration code is missing in the "OneToMayLabels" class
You need to add the below code snippet which register the Custom parser in the 'ESRI Mx Annotation Expression Parsers' category
#Region "COM Registration Function(s)"
<ComRegisterFunction(), ComVisibleAttribute(False)> _
Public Shared Sub RegisterFunction(ByVal registerType As Type)
' Required for ArcGIS Component Category Registrar support
ArcGISCategoryRegistration(registerType)
'Add any COM registration code after the ArcGISCategoryRegistration() call
End Sub
<ComUnregisterFunction(), ComVisibleAttribute(False)> _
Public Shared Sub UnregisterFunction(ByVal registerType As Type)
' Required for ArcGIS Component Category Registrar support
ArcGISCategoryUnregistration(registerType)
'Add any COM unregistration code after the ArcGISCategoryUnregistration() call
End Sub
#Region "ArcGIS Component Category Registrar generated code"
''' <summary>
''' Required method for ArcGIS Component Category registration -
''' Do not modify the contents of this method with the code editor.
''' </summary>
Private Shared Sub ArcGISCategoryRegistration(ByVal registerType As Type)
Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID)
ESRI.ArcGIS.ADF.CATIDs.AnnotationExpressionParsers.Register(regKey)
End Sub
''' <summary>
''' Required method for ArcGIS Component Category unregistration -
''' Do not modify the contents of this method with the code editor.
''' </summary>
Private Shared Sub ArcGISCategoryUnregistration(ByVal registerType As Type)
Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID)
ESRI.ArcGIS.ADF.CATIDs.AnnotationExpressionParsers.Unregister(regKey)
End Sub
#End Region
You may need to Import ESRI.ArcGIS.ADF.CATIDs and System.Runtime.InteropServices in the respective class.
After making the changes you can build and run the sample application and you will be able to see the Custom parser name listed in the dropdown.
Hope this helps.
Nilesh Shinolikar.
GIS SDK Analyst