Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I add ControlsMapZoomInTool like this:

AddItem("esriControls.ControlsMapZoomInTool", -1);

To a Basic Context Menu I get the magnifying icon in my context menu right next to the words "Zoom In".

Is there a way to add an icon to a custom Universal BaseCommand in ArcEngine?

ArcEngine 10, C#, VS2010

share|improve this question

I'm not sure if ArcEngine is different from desktop. Just set the icon in the master base class and do not set it on the children classes.

Something like:

public class UniversalCustomCommand:BaseCommand
    public UniversalCustomCommand()
        base.m_bitmap = new Bitmap(GetType(),"path to icon");

public class ConcreteCommandA:UniversalCustomCommand
    public ConcreteCommandA()
        // init other members here
share|improve this answer

Your Answer


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.