Dim pEnumFeature As ESRI.ArcGIS.Geodatabase.IEnumFeature Dim pFeature As ESRI.ArcGIS.Geodatabase.IFeature Dim pEditor As ESRI.ArcGIS.Editor.IEditor Dim featureCode As String Dim def As String pEditor = My.ArcMap.Application.FindExtensionByName("esriEditor.Editor") pEnumFeature = pEditor.EditSelection pEnumFeature.Reset() pFeature = pEnumFeature.Next pEditor.StartOperation()
Solved! Go to Solution.
If My.ArcMap.Editor.EditState <> ESRI.ArcGIS.Editor.esriEditState.esriStateEditing then
If My.ArcMap.Editor.EditState <> ESRI.ArcGIS.Editor.esriEditState.esriStateEditing then