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.

I would like to create a custom toolbar item in ArcEngine.

I add items like this

((AxToolbarControl)toolbarControl).AddItem( myCustomItem )

I need to know how to create a custom item in ArcEngine 10. I'm using C# and VS2010. Thanks.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

Load the ArcGIS project you're creating into Visual Studio 2010. Right-click your project (not your solution) in the Solution Exlorer and select "Add," and then select "New Item...".

Click the arrow next to ArcGIS in the list on the left or the Add New Item dialog box and then click on Extending ArcObjects. Select the item you want to create (Base Tool, in this case), and then click Add. Choose the "MapControl or PageLayoutControl" item in the list on the ArcGIS New Item Wizard Options dialog box (since you're using Engine).

You can then alter the command created however you see fit.

See here for further information.

share|improve this answer
add comment

Your Answer

 
discard

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.