MappointControl object

MappointControl object schema

The MappointControl object is the root of the Microsoft MapPoint Control 13.0 ActiveX Control object hierarchy. It allows direct access to the Map object in the MapPoint object model through the ActiveMap property. This object remains valid after the map is closed and then reopened.

Although it is possible to access the Application object from the MapPoint Control (for example, by using the Application property of the active Map object), doing so is not recommended. Instead, access equivalent Application functions—such as the Region property—directly from the MapPoint Control.

With the exception of the ReadyStateChange event, all events are a pass-through of the same event on the Map object. Avoid displaying message or dialog boxes in the middle of event handlers.

Notes

Every machine that runs an application created with the MapPoint Control must have either a full MapPoint license or a MapPoint Control runtime license. For more information about licenses and preparing an installation disc, see the About distributing an application created with the MapPoint Control reference topic.

For best results, the color settings on a machine running an application created with the MapPoint Control should be set at the highest level supported by the monitor. The palette colors may not be correct at the minimum color setting of 256 Colors.

Events

AfterRedraw

AfterViewChange

BeforeClick

BeforeDblClick

DataMapChange

MouseDown

MouseMove

MouseUp

NewDataSet

ReadyStateChange

RouteAfterCalculate

RouteAfterOptimize

SelectionChange

Methods

CloseMap

NewMap

OpenMap

SaveMap

SaveMapAs

Properties

ActiveMap

ActivePrinter

Appearance

BorderStyle

Build

FullMapName

ItineraryVisible

MousePointer

PaneState

ReadyState

Region

TabStop

Toolbars

Units

Version