Select to view content in your preferred language

Adding custum Base Tool item into ToolBarControl

411
0
05-06-2012 11:36 PM
AysberqTundra
Deactivated User
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?
0 Kudos
0 Replies