English

How To: Programmatically display selected features in ArcMap

Summary

If you are using VBA to select features in ArcMap, the code in this article will allow you to display those features.

Procedure

Use IFeatureSelection::SelectionSet on your selection set.

Code:
Dim pFSelection as IFeatureSelection
Set pFSelection = pFeatureLayer

Set pFSelection.SelectionSet = MySelectionSet
pFSelection.SelectionChanged

Dim pAV As IActiveView
Set pAV = pDoc.FocusMap
pAV.ScreenDisplay.Invalidate Nothing, True, pAV.ScreenCacheID(esriViewGeoSelection, Nothing)