0

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. I thought of hiding the unnecessary fields and then showing them again after the button is used.

Does anyone know how to programmatically turn off/on field?

spearman
  • 21
  • 3
  • You mean, them being invisible, or just still there but not clickable ? – deltu100 Nov 21 '12 at 09:53
  • Yes I just want the fields to be invisible. I would like them to be visible again after using the button(i think by turning all fields on,just like what can be done with the attribute table of a layer). – spearman Nov 21 '12 at 10:09
  • use textfield1.visible = false to hide the textfield – deltu100 Nov 21 '12 at 10:34
  • Thanks for the reply. But I don't mean textfield. I am referring to fields or columns of an attribute table for a feature class or shapefile in ArcMap. – spearman Nov 21 '12 at 11:19
  • Use gis.stackexchange.com to find people that know what you are talking about. – Hans Passant Nov 21 '12 at 11:49
  • I think you'll actually need to customise the Identify tool, rather than trying to hide fields. There's an old VB6 sample that might be portable to .Net: http://edndoc.esri.com/arcobjects/9.0/Samples/Controls/Commands/Identify/Identify.htm – Juffy Nov 23 '12 at 00:29
  • @Juffy, I've already run through the codes in that link. But I have no idea how to use the sample code or make it work. I am new to ArcMap customization and what I know is how to create and deploy an addin.I hope someone could enlighten me. – spearman Nov 23 '12 at 07:56

1 Answers1

0

you have to iterate the fields in layer and then set visible property into false . see this link in

gis.stackExchange

Community
  • 1
  • 1
mehdi
  • 645
  • 1
  • 9
  • 9