1

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

`ICommand command = new ControlsSceneZoomInToolClass();
            command.OnCreate(axMapControl1.Object);

        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?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.