This document is archived and information here might be outdated.Recommended version.
Sample: GraphicTracker with the map (ArcObjects .NET 10.4 SDK)
GraphicTracker with the map
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.
Start Visual Studio, open the solution file, and build the project.
Run the application. The GraphicTracker dialog box opens as shown in the following screen shot.
Add a .mxd file or data to the application.
Add graphics to the GraphicTracker using the Add graphic tool.
Select a graphic using the Select graphic tool (performs a HitTest).
Select a graphic by ID from the drop-down list, highlight it, and change its symbol or add some text using the form controls.
Move the selected graphic, or all the graphics, using the radio buttons.
Examine the code attached to these commands, combo boxes, and radio buttons to fully explore the functionality of the GraphicTracker.