HOW TO
Code:
MapObjects2 Core Interop Assembly
MapObjects2 AxMap Host Interop Assembly
Code:
MapObjects2 Custom Interop Assembly
MapObjects2 MemTable Interop Assembly
Code:
private void button1_Click(object sender, System.EventArgs e)
{
//create a new instance of Map Control
ESRI.MapObjects2.Core.AxMap mMap = new ESRI.MapObjects2.Core.AxMap();
//Add MapObjects license key to the control
System.Reflection.FieldInfo f =typeof(AxHost).GetField("licenseKey", System.Reflection.BindingFlags.NonPublic |
System.Reflection.BindingFlags.Instance);
f.SetValue(mMap, "Copyright (c) 1999 ESRI, Inc.");
//Add Map Control to the Form
Controls.Add(mMap);
mMap.Show();
}
Article ID:000006256
Get help from ArcGIS experts
Download the Esri Support App