Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Hi,
I have been learning to run arc commands using C# and have been following this walk through http://edndoc.esri.com/arcobjects/9.1/ArcGISDevHelp/DevelopmentEnvs/DotNet/walkthrough1cs.htm[^] . When they are talking about implementing the ICommand interface, they go to the ICommand interface, right click and click add and then click implement interface. When I am right clicking the ICommand interface, I am not getting the add option.Is this because the walkthrough is on a older version or am I making a mistake??

Thanks in advance.

[edit]Link linkified - OriginalGriff[/edit]
Posted
Updated 8-Jun-11 9:44am
v2

1 solution

It's proablly that it is for an older version. Certainly, it doesn't seem to work in my VS2008. There are two other ways to do it easily:
1) When you type the interface name:
public class ZoomIn : ICommand
A small blue rectangle will appear under the first letter. Move the mouse over that and click the drop down.
2) Right click the interface name in the class declaration: Implement it on the menu that appears.
 
Share this answer
 
Comments
Ananth Ramchandran 8-Jun-11 15:52pm    
Thank you.
Monjurul Habib 8-Jun-11 17:09pm    
nice answer,my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900