Changing command caption at layer visibility change.

Discussion created by ddillard83 on Mar 14, 2011

I have a command that toggles the visibility of a particular layer in ArcMap.  I would like to change the caption of this command to change as the layer's visibility changes.  I think I understand that I need to create an event handler for the ILayerEvents.VisibilityChanged event.  I am unsure of where this event handler needs to be.