18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BUILDING APPLICATIONS WITH WINDOWS CONTROLS<br />

The <strong>ArcGIS</strong> developer samples are not included<br />

in the typical installation of the <strong>ArcGIS</strong> <strong>Engine</strong><br />

<strong>Developer</strong> Kit. If you do not have them installed,<br />

rerun the <strong>Developer</strong> Kit Install wizard, click<br />

Custom or Modify, and click the samples feature<br />

under Software <strong>Developer</strong> Kit.<br />

The AxControlName .NET Framework components<br />

represent the control that is hosted within<br />

a .NET form, while the esriControlName<br />

assemblies contain the object and interfaces<br />

from inside the control’s type library.<br />

\<strong>Developer</strong>Kit\samples\<strong>Developer</strong>_<strong>Guide</strong>_Scenarios\<br />

Building_an_<strong>ArcGIS</strong>_Controls_Map_Viewer_ApplicationCSharp.zip<br />

The controls and libraries used in this scenario are as follows:<br />

• ESRI.<strong>ArcGIS</strong>.AxMapControl • ESRI.<strong>ArcGIS</strong>.MapControl<br />

• ESRI.<strong>ArcGIS</strong>.AxPageLayoutControl • ESRI.<strong>ArcGIS</strong>.PageLayoutControl<br />

• ESRI.<strong>ArcGIS</strong>.AxTOCControl • ESRI.<strong>ArcGIS</strong>.TOCControl<br />

• ESRI.<strong>ArcGIS</strong>.AxToolbarControl • ESRI.<strong>ArcGIS</strong>.ToolbarControl<br />

• ESRI.<strong>ArcGIS</strong>.AxLicenseControl • ESRI.<strong>ArcGIS</strong>.LicenseControl<br />

• ESRI.<strong>ArcGIS</strong>.Carto • ESRI.<strong>ArcGIS</strong>.System<br />

• ESRI.<strong>ArcGIS</strong>.Display • ESRI.<strong>ArcGIS</strong>.SystemUI<br />

• ESRI.<strong>ArcGIS</strong>.Geometry • ESRI.<strong>ArcGIS</strong>.Utility<br />

IMPLEMENTATION<br />

The implementation below provides you with all the code you will need to<br />

successfully complete the scenario. It does not provide step-by-step instructions<br />

to develop applications in Microsoft Visual Studio .NET, as it assumes that you<br />

have a working knowledge of the development environment already.<br />

Loading the <strong>ArcGIS</strong> controls<br />

Before you start to program your application, the <strong>ArcGIS</strong> controls and the other<br />

<strong>ArcGIS</strong> <strong>Engine</strong> library references that the application will use should be loaded<br />

into the development environment.<br />

1. Start Visual Studio .NET and create a new Visual C# Windows Application<br />

project from the New project dialog box.<br />

2. Name the project ‘Controls’, and browse to a location to save the project.<br />

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

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

Saved successfully!

Ooh no, something went wrong!