ArcGIS Controls VB Template


This sample provides a default template for using the ActiveX controls in Visual Basic. To use the template the form and project file need to be copied into the Visual Basic template directory. Once installed, every time a new Visual Basic project is created a template named 'ArcGIS Controls' will be available that has the following components and references loaded:

ESRI MapControl, ESRI PageLayoutControl, ESRI Controls Support Library, ESRI Object Library.

How to use:
  1. Copy the ArcGIS Controls.frm and ArcGIS Controls.vbp into the 'Projects' folder, beneath the Visual Basic 'Template' folder. The location of the 'Template' folder can be found in the following registry key: "\HKEY_CURRENT_USER\Software\Microsoft\VisualBasic\6.0\TemplatesDirectory" for Visual Basic 6.0.
  2. Create a new Visual Basic project and select the 'ArcGIS Controls' template.

Page Layout Control

Minimum ArcGIS Version Required: 8.2

Difficulty: Beginner

Visual Basic
File Description
ArcGIS Controls.frm VB form file.
ArcGIS Controls VB Template.vbp VB Project file.

Key CoClasses: PageLayoutControl