Need to add event handler for onClick in ArcMap

Discussion created by Dica455 on Oct 31, 2013
Latest reply on Oct 31, 2013 by Dica455
Hi guys

I have a custom command button I've added to ArcMap.  When clicked, it opens a new winForm window.  Now I need to get a reference for the arcMap's open document or layer (sorry - total newbie, so excuse the poor lingo).  How is this possible?  From a sample tutorial I've found so far, I see I can pass in a reference from ArcMap of type IApplication to my winForm, but don't think this has what I need to listen for mouse click events on the ArcMap object.