Ok, here's the code
Main Form
Secondary FormCode:public partial class Form1 : Form { private serialCom newSeCom = new serialCom(); /* Create the serial port object */ private static serialSettingsFrm SerialSettingsForm = new serialSettingsFrm(newSeCom); etc...
serialCom is my serial communication driver class.Code:public partial class serialSettingsFrm : Form { public serialSettingsFrm(serialCom newSeCom) { InitializeComponent(); } etc...
The error(s) I get is :
I have tried declaring the class instance creation as public in the main form, but I get a similar error ("...is less accessible..blah...blah...blah")Code:Error 1 Inconsistent accessibility: parameter type 'SAS_Calibrator.serialCom' is less accessible than method 'SAS_Calibrator.serialSettingsFrm.serialSettingsFrm(SAS_Calibrator.serialCom)' C:\Documents and Settings\Desktop\SAS_Calibrator\SAS_Calibrator\serialSettingsFrm.cs 13 16 SAS_Calibrator
Any Ideas?




Reply With Quote