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 have a point & polygon shapefile. Point file has a field namely, Type: atm,hospital,school etc... Polygon file has a field Zone: Zn1, Zn2, Zn3. There will be two combo boxes which will populate this two fields respectively

What i like to do is.......If i select school & Zn2 in the comboboxes and click the "Show" button...... only schools which fall under the Zn2 polygon should be displayed. W.r.t arcobjects, i m just a beginner. Trying this for the past two days. Can anyone help me regarding this ? Thanks in advance...

(ArcGIS Version 9.3 )

share|improve this question

Your onSelection combo box event needs to fire off this property:

IFeatureLayerDefinition.DefinitionExpression Property

to only show those features within the layer.

Here is a code snippet you can reference:

share|improve this answer
Thanks a lot. I'll try that and reply ASAP..... – Saravana Ganesh Apr 25 '13 at 14:04
It works only for the features within a same shapefile. What i like to do is........... Select "Point features which has certain id" from "polygon features which has certain id". – Saravana Ganesh Apr 26 '13 at 6: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.