PROBLEM

Map.Refresh in Mouse* events does not fire *LayerDraw events

Last Published: April 25, 2020

Solution or Workaround

Description

In Microsoft Access 2000, calling the Refresh and RefreshLayer methods in any of the Mouse* events will not trigger any of the *LayerDraw events.

Cause

This is a known issue.

Solution

Instead of using Map1.Refresh in the Mouse* event subroutine, try:

Code:
Dim rect as MapObjects2.Rectangle
Set rect = Map1.Extent
Set Map1.Extent = rect

This cannot be used to mimic the behavior of the RefreshLayer method.

Article ID:000001831

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic