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 />

such as a .NET form. The objects and functionality within each control can be<br />

combined with other ESRI ArcObjects and custom controls to create customized<br />

end user applications.<br />

The scenario has been written in both C# and Visual Basic .NET, though the<br />

following implementation concentrates on the C# scenario. Many developers will<br />

feel more comfortable with Visual Basic .NET, as the code looks familiar to<br />

Visual Basic 6.0, while the syntax of the C# programming language will be<br />

familiar to Java and C++ programmers. Whichever development environment<br />

you use, your future success with the <strong>ArcGIS</strong> controls depends on your skill in<br />

both the programming environment and ArcObjects.<br />

The MapControl, PageLayoutControl, TOCControl, and ToolbarControl are used<br />

in this scenario to provide the user interface of the application, and the<br />

LicenseControl is used to configure the application with an appropriate license.<br />

The <strong>ArcGIS</strong> controls are used in conjunction with other ArcObjects and control<br />

commands by the developer to create a GIS viewing application.<br />

DESIGN<br />

The scenario has been designed to highlight how the <strong>ArcGIS</strong> controls interact<br />

with each other and to expose a part of each <strong>ArcGIS</strong> control’s object model to<br />

the developer.<br />

Each .NET <strong>ArcGIS</strong> <strong>Engine</strong> control has a set of property pages that can be accessed<br />

once the control is embedded within a .NET form. These property pages<br />

provide shortcuts to a selection of a control’s properties and methods and allow a<br />

developer to build an application without writing any code. This scenario does<br />

not use the property pages, but rather builds up the application programmatically.<br />

For further information about the property pages, refer to the <strong>ArcGIS</strong> <strong>Developer</strong><br />

Help.<br />

REQUIREMENTS<br />

To successfully follow this scenario you need the following (the requirements for<br />

deployment are covered later in the Deployment section):<br />

• An installation of the <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Kit with an authorization<br />

file enabling it for development use.<br />

• An installation of the Microsoft Visual Studio .NET 2003 development<br />

environment and the Microsoft .NET Framework 1.1 and an appropriate<br />

license.<br />

• Familiarity with Microsoft Windows operating systems and a working knowledge<br />

of Microsoft Visual Studio .NET and either the C# or Visual Basic .NET<br />

programming language. While the scenario provides some information about<br />

how to use the <strong>ArcGIS</strong> controls in Microsoft Visual Studio .NET, it is not a<br />

substitute for training in the development environment.<br />

• While no experience with other ESRI software is required, previous experience<br />

with ArcObjects and a basic understanding of <strong>ArcGIS</strong> applications, such<br />

as ArcMap and ArcCatalog, are advantageous.<br />

• Access to the sample data and code that comes with this scenario. This is<br />

located at:<br />

332 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!