HOW TO
Code:
Option Explicit
Private mapCtl As VBControlExtender
Code:
Private Sub Command1_Click()
'Add MapObjects license key to the control with ProgId
Licenses.Add "MapObjects2.Map.1", "Copyright (c) 1999 ESRI, Inc."
'Load Map control (mMap) to the form
Set mapCtl = Form1.Controls.Add("MapObjects2.Map.1", "mMap")
'Show Map Control
mapCtl.Visible = True
'Use Object keyword to access the properties and methods of Map Control
mapCtl.object.BackColor = moRed
End Sub
Article ID:000006278
Get help from ArcGIS experts
Download the Esri Support App