Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

No overload for method error

$
0
0
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;
        }
    }


Viewing all articles
Browse latest Browse all 1374

Trending Articles