Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to make use of the built-in ArcObjects drawing tools (ie ControlsNewCircleTool) - but I need to listen for the events so I can add the drawing graphics to the database in our application. Is there an event or way to listen for when the user has drawn a new graphic and also modified it?

share|improve this question
up vote 4 down vote accepted

Try wiring IGraphicsContainerEvents to IMap.ActiveGraphicsLayer and listen for ElementAdded and ElementUpdated.

share|improve this answer
thanks Kirk! activeGraphicsLayer = (CompositeGraphicsLayer)mapControl.ActiveView.FocusMap.ActiveGraphicsLayer; IGraphicsContainerEvents_Event containerEvents = (IGraphicsContainerEvents_Event)activeGraphicsLayer; containerEvents.ElementAdded +=new IGraphicsContainerEvents_ElementAddedEventHandler(containerEvents_ElementAdded); } – Darren Sep 12 '11 at 13:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.