AnsweredAssumed Answered

VB.NET Zoom to ObjectID

Question asked by siggisal on Oct 12, 2017
Latest reply on Oct 16, 2017 by Hornbydd



I query Address from Layer to Listview with ObjectID


how can I zoom to ObjectID 



Dim pMxDoc As IMxDocument
pMxDoc = My.ArcMap.Application.Document

Dim pMap As IMap
pMap = pMxDoc.FocusMap

Dim pFlayer As IFeatureLayer = getLayerByName(Layername)
'get the feature class
Dim pFeatureClass As IFeatureClass = pFlayer.FeatureClass

Dim pFeature As IFeature = pFeatureClass.GetFeature(ListView1.SelectedItems(0).Text)

Dim pActiveView As IActiveView
pActiveView = pMap


pMap.SelectFeature(pFlayer, pFeature)