I'm trying to zoom to a feature just like in Arcmap but in VB.net.
I'm using Axmapcontrol to display the map.
I've tried the following:
Dim pCmdItem As ICommandItem
Dim pUID As New UID
pUID.Value = "{AB073B49-DE5E-11D1-AA80-00C04FA37860}"
pCmdItem = CommandBars.Find(pUID)
pCmdItem.Execute()
but it's showing the following error:
Reference to a non-shared member requires an object reference.
I've found a solution that suggets to change mytype from empty to WindowsForms in the vbproj file, but it already contains the correct value. Is there any way to zoom to a feature in an Axmapcontrol in VB.net?