I have the following error "No overload for method 'GetCaption' takes '0' arguments" for the following code (Visual C# 2008 Express):
Code:
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;
}
}