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 )


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:


  • 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".
    – sgm_jk
    Apr 26 '13 at 6:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.