We're using Developer Kit 10.1 in a vb.net win forms app. The app listens for messages in the message queue. The message contains x/y. When a message is received, the map goes to the location. When the form is visible/open the zooming works but when form is minimized it does not zoom to the correct location.
These are the steps to reproduce the issue:
Minimize the form
Send a message containing x/y
Restore/open/maximize the form and the map is in the wrong location
Here is a snippet of code:
Private Shared Sub ZoomMap(ByVal map As AxMapControl, _
ByVal pt As IPoint)
Dim mapExtent As IEnvelope
mapExtent = map.Extent
map.Extent = mapExtent
Is this a bug? Is there another way (not using CenterAt) to get the expected behavior? Any suggestions or help is appreciated.