ActiveMap property (Application)
Returns the Map object that is currently open (there is only one map open at a time). Read-only.
Applies to
Objects: Application
Syntax
object.ActiveMap
Parameters
Part | Description |
---|---|
object | Required. An expression that returns an Application object. |
Example
Sub GetMapName()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Get the name of the active map
MsgBox "Map name: " + objApp.ActiveMap.Name
End Sub