How to use ArcMap Existing Command in C# .Net(Arcobject).

Discussion created by Madan.Burathi13 on Apr 28, 2013
Latest reply on Apr 30, 2013 by Barbara_Schneider
Hi All,

My name is Madan Burathi, I am new in Arcobject can any one please tell me how convert following VBA code to C# code.
Actually my intention is how to use Arcmap existing commands in .Net Environment. It will be a great help.

Dim pCommandItem As ICommandItem
Set pCommandItem = ThisDocument.CommandBars.Find(ArcID.Query_ZoomToSelected)
If (pCommandItem Is Nothing) Then Exit Sub

   Madan Burathi
Software Developer.