HOW TO
Code:
MapObjects2 Core Interop Assembly
MapObjects2 AxMap Host Interop Assembly
Code:
MapObjects2 Custom Interop Assembly
MapObjects2 MemTable Interop Assembly
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'create a new instance of Map Control
Dim mMap As New ESRI.MapObjects2.Core.AxMap()
'Add MapObjects license key to the control
Dim f As System.Reflection.FieldInfo
f = GetType(AxHost).GetField("licenseKey", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance)
f.SetValue(mMap, "Copyright (c) 1999 ESRI, Inc.")
'Add Map Control to the Form
Controls.Add(mMap)
mMap.Show()
End Sub
Note:
The string 'licenseKey' is case sensitive.
Article ID:000006248
Get help from ArcGIS experts
Download the Esri Support App