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

How can I prevent the user from deleting a feature?

void m_editEvents_OnDeleteFeature(IObject obj)
            // Code
share|improve this question
see: – Jay Cummins Jun 3 '12 at 14:12
up vote 3 down vote accepted

Some time ago I faced the same task and have searched documentation and forums concerning this question.

At last I've ended on this Esri forum topic: How to suppress AbortOperation message.

I have used approach proposed in the last message of that topic although it is not very beautiful. This was in 9.3.1, may be there is better solution in 10.0 now.

Hope it helps you.

share|improve this answer
thanks for your help i tried AbortOperation its work fine, but its give me a message box, how can i get rid of it, or change it ? – IBRA Jun 3 '12 at 12:59
Read the last post in that topic, they are solving this problem there. PS it is better to post such additional questions in the comments to an answer. – Alex Markov Jun 3 '12 at 13:03
Thanks for helping. :) – IBRA Jun 3 '12 at 13:10

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.