AnsweredAssumed Answered

No overload for method error

Question asked by kpearson272 on Feb 22, 2013
Latest reply on Feb 22, 2013 by kenbuja
I have the following error "No overload for method 'GetCaption' takes '0' arguments" for the following code (Visual C# 2008 Express):
 public class Test : ESRI.ArcGIS.Desktop.AddIns.Button     {         public Test()         {         }          public void GetCaption (IApplication application)         {             string strDisplayField;             strDisplayField = application.Caption;             MessageBox.Show(strDisplayField);         }                  protected override void OnClick()         {             GetCaption();              ArcMap.Application.CurrentTool = null;         }         protected override void OnUpdate()         {             Enabled = ArcMap.Application != null;         }     }

Outcomes