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.

When i open MXD file, it isn't add to TOCControl, but it is dispalyed. How solve it or it is imposible? Code from standart ArcEngine MapControll APP

private void menuOpenDoc_Click(object sender, EventArgs e)
    {
        //execute Open Document command
        ICommand command = new ControlsOpenDocCommandClass();
        command.OnCreate(m_mapControl.Object);
        command.OnClick();
    }

Or this(adding to TOCControl) i can do only for layers?

share|improve this question
    
Did you set BuddyControl of TOC to MapControl? –  Darksanta Apr 23 '13 at 3:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.