I want to use some ArcObjects predefined commands for my buttons actions..I used this code

`ICommand command = new ControlsSceneZoomInToolClass();

        axMapControl1.CurrentTool = (ITool)command;`

when I press button the muse chenges to zoom in but it doesn't work..Is there some thing wrong with my code?


Your Answer

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

Browse other questions tagged or ask your own question.