AnsweredAssumed Answered

How to disable add-in button in ArcMap before user press it ?

Question asked by sovzond.maxim on Jun 19, 2012
Latest reply on Jun 19, 2012 by sovzond.maxim

I am writing an ArcMap 10 Add-in using C#. I create ArcMap Add-in by wizard and create button class (Inherits ESRI.ArcGIS.Desktop.AddIns.Button). In this class i define OnUpdate() method, but this method is called only after button pressed. I want to disable button in some cases, before user press it,  how I can manage OnUpdate() call ?