0 Replies Latest reply on May 29, 2015 1:13 PM by Lee Midgley

    c# eDrawings 2014 viewer example with event calls?

    Lee Midgley

      I'm trying to get it to use the event OnFinishedLoadingDocument  but I get a strange compile error, I can't find any online c# code for 2014 or above.  using VS2013 .NET 4.5

      Error:-

      Form1.cs(77,63,77,193): error CS0123: No overload for 'eDrawingsControl_OnFinishedLoadingDocument' matches delegate 'AxEModelView._IEModelViewControlEvents_OnFinishedLoadingDocumentEventHandler'

       

      any ideas?

       

      code below:-

       

       

              private void Form1_Load(object sender, EventArgs e)

              {

                  axEModelViewControl1.OnFinishedLoadingDocument += new  AxEModelView._IEModelViewControlEvents_OnFinishedLoadingDocumentEventHandler(this.eDrawingsControl_OnFinishedLoadingDocument);

              }

       

              void eDrawingsControl_OnFinishedLoadingDocument(string FileName)

              {

                  MessageBox.Show("Finished loading");

              }

       

      in the form designer it is like this:-

       

              private void InitializeComponent()

              {

                  System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));

                  this.button1 = new System.Windows.Forms.Button();

                 

                  this.axEModelViewControl1 = new AxEModelView.AxEModelViewControl();

                  ((System.ComponentModel.ISupportInitialize)(this.axEModelViewControl1)).BeginInit();