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?
Best Answer
Try using the ControlsSelectFeaturesTool it works on features instead of ControlsSelectTool that work on graphics.