AnsweredAssumed Answered

ArcSceneControl add command issue

Question asked by asingh6 on May 11, 2018

When I am adding the command in toolbar it showing in disabled mode rest other are in active mode. what I am missing please guide me. The same code is working for mapcontrol and globecontrol but not in scene control.

 

 private void Form1_Load(object sender, EventArgs e)     
{
 //Add generic commands         
axToolbarControl1.SetBuddyControl(axSceneControl1);    
axToolbarControl1.AddItem("esriControls.ControlsAddDataCommand", 0, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);  
 axToolbarControl1.AddItem("esriControls.ControlsOpenDocCommand", 0, -1, false, 0, esriCommandStyles.esriCommandStyleIconAndText);    
}

Attachments

Outcomes