18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BUILDING APPLICATIONS WITH ACTIVEX<br />

The controls will now appear in the Visual Basic toolbox.<br />

4. Click the Project menu again and click References.<br />

5. In the References dialog box, check ESRI Carto Object Library, ESRI Display<br />

Object Library, ESRI Geometry Object Library, and ESRI SystemUI Object<br />

Library. Click OK.<br />

Embedding the <strong>ArcGIS</strong> controls in a container<br />

Before you can access each control’s properties, methods, and events, each control<br />

needs embedding within an ActiveX container. Once the controls are embedded<br />

within the form, they will shape the application’s user interface.<br />

1. Open the Visual Basic Form.<br />

2. Double-click the MapControl button in the Visual Basic toolbox to add a<br />

MapControl to a form.<br />

3. Repeat to add the PageLayoutControl, TOCControl, and ToolbarControl.<br />

4. Resize and reposition each control on the form as shown.<br />

Chapter 6 • <strong>Developer</strong> scenarios • 285

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!