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

6. In the Form_Closing event add the following code:<br />

private void Form1_Closing(object sender,<br />

System.ComponentModel.CancelEventArgs e)<br />

{<br />

// Release COM objects.<br />

ESRI.<strong>ArcGIS</strong>.Utility.COMSupport.AOUninitialize.Shutdown();<br />

}<br />

7. Build the project and build the solution in release mode.<br />

To successfully deploy this application onto a user’s machine:<br />

• The application’s executable and the DLL containing the custom command<br />

will need to be deployed onto the user’s machine. The Assembly Registration<br />

tool (RegAsm.exe) must be used to add information about the custom class to<br />

the registry.<br />

• The user’s machine will need an installation of the <strong>ArcGIS</strong> <strong>Engine</strong> Runtime<br />

and a standard <strong>ArcGIS</strong> <strong>Engine</strong> license.<br />

• The user’s machine will need an installation of the Microsoft .NET Framework<br />

1.1.<br />

ADDITIONAL RESOURCES<br />

The following resources may help you understand and apply the concepts and<br />

techniques presented in this scenario.<br />

• Additional documentation available in the <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Kit<br />

including <strong>ArcGIS</strong> <strong>Developer</strong> Help, component help, object model diagrams,<br />

and samples to help you get started.<br />

• <strong>ArcGIS</strong> <strong>Developer</strong> Online—Web site providing the most up-to-date information<br />

for <strong>ArcGIS</strong> developers including updated samples and technical documents.<br />

Go to http://arcgisdeveloperonline.esri.com.<br />

• ESRI online discussion forums—Web sites providing invaluable assistance<br />

from other <strong>ArcGIS</strong> developers. Go to http://support.esri.com and click the User<br />

Forums tab.<br />

• Microsoft documentation on the Visual Studio .NET development environment.<br />

356 • <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!