Simple Map Control Application


This application makes use of the ESRI Map Control, and some of the sample commands and tools that are included at 8.2. It has a simple UI consisting of a toolbar, status bar and map control. The toolbar is created at runtime and populated with a selection of commands and tools. Creating applications in this way is relatively quick, and has the added advantage that commands and tools written for use within ArcMap can be reused, with little change. For more information on this type of application development consult the Getting Started with the Map Control and Exploring ArcObjects (Appendix D) books.

How to use:
  1. Register the following sample commands located in ..\ArcObjects Developer Kit\Samples\Controls\Commands.
  2. Open the Visual Basic project for the "Simple Map Control Application" sample.
  3. Compile and execute the code.
  4. Test the various commands, both by loading data and opening an existing map document.

No ArcGIS application required

Minimum ArcGIS Version Required: 8.2

Difficulty: Intermediate

Visual Basic
File Description
frmMain.frm Implementation file for project.
frmMain.frx Binary file used by implementation file.
VBSimpleMapControlApplication.vbp VB Project File for sample.
VBSimpleMapControlApplication.exe Compiled project executable.

Key CoClasses: Map Control
Key Interfaces: ICommand, ITool