Hello.
I need help for adding custum Base Tool item into ToolBarControl.
I have add this Base Tool into the project. But when I add this item with following code into ToolBarControl, Visual Studio sends this error: "The supplied command is invalid"
private void MainForm_Load(object sender, EventArgs e)
{
...
axToolbarControl1.AddItem("MyMapApplication.CameraTool", -1, -1, false, 0,esriCommandStyles.esriCommandStyleIconAndText);
}
But when I add a new project into the solution and add this Base Tool into this project (into new project) the code is working. But I need that, the Base Tool and other classes be in same project. Because I want to get other class properties from this Base Tool class.
Can anyone help me solve this problem?