Author Topic: Importing existing vb.net into advanced hmi  (Read 3840 times)

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Importing existing vb.net into advanced hmi
« on: March 04, 2015, 12:01:30 AM »
I have an OEM customer that has a custom one off app written by another integrator that does not work very well. I have the source code for the existing hmi that runs on a custom OPC server which I do not have source code. I was trying to import the old HMI into advancedHMI in order to use the Modbus TCP driver however I get nothing but errors. Anyway I can bring all of the existing project and not break all of the links??

Jody

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Importing existing vb.net into advanced hmi
« Reply #1 on: March 04, 2015, 04:41:11 AM »
What is an example a some of the errors you are getting?

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #2 on: March 09, 2015, 04:18:34 PM »
Archie sorry for the delay,
''*********************************************************************
Warning   1   Namespace or type specified in the Imports 'System.Data.OracleClient' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParData.vb   2   9   AdvancedHMI
Warning   2   Namespace or type specified in the Imports 'System.Data.SqlServerCe' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParData.vb   3   9   AdvancedHMI
Error   3   Type 'SqlCeEngine' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParData.vb   241   20   AdvancedHMI
Error   4   Type 'SqlCeConnection' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParData.vb   252   14   AdvancedHMI
Error   5   Type 'SqlCeDataAdapter' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParData.vb   257   14   AdvancedHMI
Error   6   Type 'SqlCeDataAdapter' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParData.vb   262   14   AdvancedHMI
Error   7   Type 'SqlCeCommandBuilder' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParData.vb   266   14   AdvancedHMI
Error   8   Type 'ParColorBar' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   451   35   AdvancedHMI
Error   9   Type 'Line' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   453   35   AdvancedHMI
Error   10   Type 'ParLED' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   455   35   AdvancedHMI
Error   11   Type 'ParGauge' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   457   35   AdvancedHMI
Error   12   Type 'ParColorBar' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   500   34   AdvancedHMI
Error   13   Type 'ParLED' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   503   34   AdvancedHMI
Error   14   Type 'ParColorBar' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   766   14   AdvancedHMI
Error   15   Type 'ParLED' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   777   14   AdvancedHMI
Error   16   Type 'ParGauge' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   885   13   AdvancedHMI
Error   17   Type 'Line' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\ParUpdater.vb   1013   15   AdvancedHMI
Error   18   Type 'HMIClient.frmParDisplay' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   3   14   AdvancedHMI
Error   19   sub 'Dispose' cannot be declared 'Overrides' because it does not override a sub in a base class.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   7   29   AdvancedHMI
Error   20   'Dispose' is not a member of 'Object'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   11   9   AdvancedHMI
Error   21   'SuspendLayout' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   51   9   AdvancedHMI
Error   22   'ClientSize' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   234   9   AdvancedHMI
Error   23   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   235   9   AdvancedHMI
Error   24   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   236   9   AdvancedHMI
Error   25   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   237   9   AdvancedHMI
Error   26   'IsMdiContainer' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   238   9   AdvancedHMI
Error   27   'Menu' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   239   9   AdvancedHMI
Error   28   'Name' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   240   9   AdvancedHMI
Error   29   'Text' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   241   9   AdvancedHMI
Error   30   'TransparencyKey' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   242   9   AdvancedHMI
Error   31   'ResumeLayout' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.Designer.vb   246   9   AdvancedHMI
Error   32   'MdiChildren' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.vb   14   38   AdvancedHMI
Error   33   'frmDeviceViewer' is a type and cannot be used as an expression.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.vb   46   20   AdvancedHMI
Error   34   Event 'Activated' cannot be found.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.vb   53   88   AdvancedHMI
Error   35   Event 'Deactivate' cannot be found.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.vb   57   89   AdvancedHMI
Error   36   'Close' is not a member of 'MfgControl.AdvancedHMI.frmMDIChild'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmMDIChild.vb   66   9   AdvancedHMI
Error   37   Type 'Line' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmParDisplay.vb   249   28   AdvancedHMI
Error   38   Type 'Line' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmParDisplay.vb   250   27   AdvancedHMI
Error   39   Type 'HMIClient.frmParDisplay' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   2   12   AdvancedHMI
Error   40   sub 'Dispose' cannot be declared 'Overrides' because it does not override a sub in a base class.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   21   39   AdvancedHMI
Error   41   'SuspendLayout' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   105   5   AdvancedHMI
Error   42   'AutoResize' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   462   5   AdvancedHMI
Error   43   'AutoScaleMode' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   463   5   AdvancedHMI
Error   44   'BackColor' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   464   5   AdvancedHMI
Error   45   'ClientSize' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   465   5   AdvancedHMI
Error   46   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   466   5   AdvancedHMI
Error   47   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   467   5   AdvancedHMI
Error   48   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   468   5   AdvancedHMI
Error   49   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   469   5   AdvancedHMI
Error   50   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   470   5   AdvancedHMI
Error   51   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   471   5   AdvancedHMI
Error   52   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   472   5   AdvancedHMI
Error   53   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   473   5   AdvancedHMI
Error   54   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   474   5   AdvancedHMI
Error   55   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   475   5   AdvancedHMI
Error   56   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   476   5   AdvancedHMI
Error   57   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   477   5   AdvancedHMI
Error   58   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   478   5   AdvancedHMI
Error   59   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   479   5   AdvancedHMI
Error   60   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   480   5   AdvancedHMI
Error   61   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   481   5   AdvancedHMI
Error   62   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   482   5   AdvancedHMI
Error   63   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   483   5   AdvancedHMI
Error   64   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   484   5   AdvancedHMI
Error   65   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   485   5   AdvancedHMI
Error   66   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   486   5   AdvancedHMI
Error   67   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   487   5   AdvancedHMI
Error   68   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   488   5   AdvancedHMI
Error   69   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   489   5   AdvancedHMI
Error   70   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   490   5   AdvancedHMI
Error   71   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   491   5   AdvancedHMI
Error   72   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   492   5   AdvancedHMI
Error   73   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   493   5   AdvancedHMI
Error   74   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   494   5   AdvancedHMI
Error   75   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   495   5   AdvancedHMI
Error   76   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   496   5   AdvancedHMI
Error   77   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   497   5   AdvancedHMI
Error   78   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   498   5   AdvancedHMI
Error   79   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   499   5   AdvancedHMI
Error   80   'Name' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   500   5   AdvancedHMI
Error   81   'Text' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   501   5   AdvancedHMI
Error   82   'ResumeLayout' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   502   5   AdvancedHMI
Error   83   'PerformLayout' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   503   5   AdvancedHMI
Error   84   'ReLoadControls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   537   5   AdvancedHMI
Error   85   Type 'frmGenset' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   43   38   AdvancedHMI
Error   86   Type 'frmBeltScale' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   44   41   AdvancedHMI
Error   87   Type 'frmSettings' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   45   40   AdvancedHMI
Error   88   Type 'frmDualConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   46   44   AdvancedHMI
Error   89   Type 'frmShuttleConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   47   47   AdvancedHMI
Error   90   Type 'frmShiftConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   48   45   AdvancedHMI
Error   91   Reference to a non-shared member requires an object reference.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   89   21   AdvancedHMI
Error   92   Type 'frmShuttleConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   317   33   AdvancedHMI
Error   93   Type 'frmShuttleConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   318   29   AdvancedHMI
Error   94   Type 'frmShiftConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   321   33   AdvancedHMI
Error   95   Type 'frmShiftConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   322   29   AdvancedHMI
Error   96   Type 'frmDualConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   325   33   AdvancedHMI
Error   97   Type 'frmDualConveyor' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   326   29   AdvancedHMI
Error   98   Type 'frmGenset' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   329   33   AdvancedHMI
Error   99   Type 'frmGenset' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   330   29   AdvancedHMI
Error   100   Type 'frmBeltScale' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   333   33   AdvancedHMI
Error   101   Type 'frmBeltScale' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   334   29   AdvancedHMI
Error   102   Type 'frmSettings' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   337   33   AdvancedHMI
Error   103   Type 'frmSettings' is not defined.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\mdlForms.vb   338   29   AdvancedHMI
Error   104   Maximum number of errors has been exceeded.   AdvancedHMI

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Importing existing vb.net into advanced hmi
« Reply #3 on: March 09, 2015, 04:54:35 PM »
Start with right-clicking the AdvancedHMI project in Solution Explorer and selecting properties.

Select the References Tab
Select Add Reference and look for  System.Data.OracleClient

Do the same for System.Data.SqlServerCe

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #4 on: March 10, 2015, 03:37:35 PM »
Archie
Thanks for the help that cleared up the server db issues now all I have to fix is all of the errors created by the controls from the original integrator.

Error   65   'Controls' is not a member of 'MfgControl.AdvancedHMI.frmPointViewer'.   C:\Users\Jody\Desktop\AdvancedHMIBetaV397c\AdvancedHMI\frmPointViewer.vb   492   5   AdvancedHMI

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Importing existing vb.net into advanced hmi
« Reply #5 on: March 10, 2015, 03:51:01 PM »
What is the line of code in frmPointViewer.vb at line 492?

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #6 on: March 10, 2015, 03:53:34 PM »
Me.Controls.Add(Me.lblValue_1)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Importing existing vb.net into advanced hmi
« Reply #7 on: March 10, 2015, 03:59:53 PM »
That must be code from a 2005 or 2008 version before it did partial classes. At the top of the code do you see a line of code similar to this:

Inherits System.Windows.Forms.Form


Also is there a line of code at the top like this:

Class frmPointViewer

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #8 on: March 10, 2015, 04:10:45 PM »
there are no inherits at the top that I can find in any of the code pointing to  " System.Windows.Forms.Form" I copied a the first line in the code that notes anything .Windows.forms. there is a line like the second line in my paste for every label in there app

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    Me.lblValue_0 = New System.Windows.Forms.Label
 

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #9 on: March 10, 2015, 04:12:12 PM »
maybe I should generate a class for each type that is not defined???? Thanks again

JOdy

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Importing existing vb.net into advanced hmi
« Reply #10 on: March 10, 2015, 04:17:46 PM »
The Controls is a collection that is part of the System.Windows.Forms.Form class. The line of code me.Controls.Add is what actuall adds the item to the form so it gets displayed. The error says that Controls doesn't exist, so the System.Windows.Forms.Form is not inherited.

Before Partial Classes were created, all of this code was part of the forms class definition. After Partial classes were added, the code generated by Visual Studio now resides in it's own file. The file name would be frmPointViewer.designer.vb. These files are typically not visible in Solution Explorer unless you click the icon for Show All Files.

In the original VB project were there any designer files?

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #11 on: March 10, 2015, 04:18:54 PM »
Let me go look...

jdm

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #12 on: March 10, 2015, 04:25:01 PM »
there are some .resx and a couple .design.vb files but they are copied into my new application. 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Importing existing vb.net into advanced hmi
« Reply #13 on: March 10, 2015, 04:45:47 PM »
When you add existing forms to an application, be sure to only select the .vb file, not the designer file. Visual Studio will automatically pull in the designer file and create the appropriate links.

Joe Matkowski

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Importing existing vb.net into advanced hmi
« Reply #14 on: March 10, 2015, 04:46:52 PM »
ok thanks i'm gonna start over and see what hapens

jdm