Building a MapViewer application using the ArcGIS Engine controls
How to use
See
How to use ArcGIS samples
for help on compiling, setting up the debugger, and running the sample.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Open the .NET solution file and build the projects.
Run the controls application.
Use the Open Document command on the ToolbarControl to browse to a preauthored map document to load into the PageLayoutControl.
Use the commands and tools on the ToolbarControl to navigate around the map document. Right-click the PageLayoutControl to display the pop-up menu. Use the palette on the ToolbarControl to draw graphic elements on the PageLayoutControl.
Use the custom Add Date tool to add an element to the PageLayoutControl containing the current date.
Click a map or layer label in the TOCControl, then click it again to edit the label.
Customize the ToolbarControl by adding new commands, menus, or palettes from the CustomizeDialog. To alter the appearance of an existing item on the ToolbarControl, right-click the item to display the context menu. Stop running the application, then restart the application to see that the customizations you made were persisted.
Print the contents of the PageLayoutControl by selecting Print from the File menu.