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

832
1
Jump to solution
06-19-2012 12:52 AM
MaximVinogradov
New Contributor
Hello.

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 ?

Thanks.
0 Kudos
1 Solution

Accepted Solutions
MaximVinogradov
New Contributor
I found solution: OnDemand tag in the Config.esriaddinx file

View solution in original post

0 Kudos
1 Reply
MaximVinogradov
New Contributor
I found solution: OnDemand tag in the Config.esriaddinx file
0 Kudos