Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've got a standalone program using ArcGis Engine, showing a map on the screen like this:

AxMapControl _mapControl;  
AxToolbarControl _toolbarControl;

// in constructor: 
_mapControl = new AxMapControl();
_toolbarControl = new AxToolbarControl();  

// in loading: 
_toolbarControl.SetBuddyControl(_mapControl);
_toolbarControl.AddItem("esriControls.ControlsSelectTool");
_mapControl.LoadMxFile(@"C:\Users\me\Documents\TestProject.mxd"); 

The ControlsSelectTool shows up in the tool, but it does not select anything on the map when I click or drag a rectangle. I probably are missing some basic problem here.

Should I use some other way to select objects in a layer or am I just missing some detail here?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Try using the ControlsSelectFeaturesTool it works on features instead of ControlsSelectTool that work on graphics.

share|improve this answer
    
Woah, great! ArcGIS confuses me everytime I try to program anything for it. Now I only need to find out what has been selected :) –  Sam Mar 1 '11 at 13:43
add comment

Your Answer

 
discard

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.