private lambdaSerial com; //create comport object //private Mainform mf; public lbXFunctions(lambdaSerial com) //com object passed to VF5fuctions object { byteCom = new byteCommands(); this.com = com;//set reference of comport child to serial parrent }