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'm creating an addin button in Arcmap via that when clicked, runs the identify tool. But I want only selected fields to appear in the identify dialog. My idea is to hide the unnecessary fields and then show them again once the identify tool is deactivated.

Is it possible to programmatically turn off/on a field?

share|improve this question
up vote 7 down vote accepted

You can use the IFieldInfo::Visible property. Here's one way

Dim pFieldInfo As IFieldInfo 
Dim pLayerFields As ILayerFields

pLayerFields = pMxDoc.FocusMap.Layer(0)
pFieldInfo = pLayerFields.FieldInfo(lIndex)
pFieldInfo.Visible = False 
share|improve this answer
Thanks. It helped a lot. – spearman Nov 22 '12 at 9:54

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.