7

I'm creating an addin button in Arcmap via VB.net 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?

asked Nov 21, 2012 at 13:03

1 Answer 1

7

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 
answered Nov 21, 2012 at 14:19
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.