Here is the way I do it to add some ICommands that I have in an extension, to a context menu in ArcMap. This is being done with Visual Basic, but the concept should translate to C# First, you need to identify either the name, or guid of the context menu you want from ArcCatalog. The ArcObjects help should help you there. In my code it looks like this: Dim myCmdBar as ICommandBar Set myUID = New esriSystem.UID myUID.Value = "esriArcMapUI.MapViewContextMenu" Then you need to get the ICommandBar that is the target context menu in ArcCatalog... Set myCmdBar = pApp.Document.CommandBars.Find(myUID) ' keep in mind I'm doing this in ArcMap... Then you can set about adding items to this command bar: Set myMenUID = New esriSystem.UID ' this will reference an ICommand from my extension myMenUID.Value = "keySheet_Extension.cKSConflictFindComm" ' my ICommand I want to add Dim myCmdItem As esriframework.ICommandItem Set myCmdItem = myCmdBar.Find(myMenUID) ' check if it is already present on the context menu... If myCmdItem Is Nothing Then Set myCmdItem = myCmdBar.Add(myMenUID, myCmdBar.Count - 1) myCmdItem.Caption = "Find next graphic conflict" myCmdItem.Group = True myCmdItem.Refresh End If ... repeat for each item you want to add to the context menu Hope this helps! Mark
... View more