[GIS] Arcmap Refresh Button

arcmaparcobjectsc

I am working with ArcMap and C#. In the bottom left hand corner, there is a menu where you can toggle between Data view and Layout View, a Pause button, and a refresh button. I have created an Add-in for ArcMap. I need to run some code when the Refresh button is clicked. Does anyone know the name of the event handler that controls the Refresh button? Or would anyone have some type of example where some code runs every time the Refresh button is clicked?

Best Answer

You probably just need to use the IActiveView.Refresh method to achieve what you're looking for. You can get the active view from the MxDocument.ActiveView property. The help/snippets should lead you the rest of the way.

Related Question