private void btnSubmit_Click(object sender, EventArgs e) { frmRegistration obj = new frmRegistration(); StudentInformationClass.SetFullName = obj.FullName(txtLastName.Text, txtFirstName.Text, txtMiddleInitial.Text); StudentInformationClass.SetStudentNo = obj.StudentNumber(txtStudentNo.Text); StudentInformationClass.SetProgram = obj.cbPrograms.Text; StudentInformationClass.SetGender = obj.cbGender.Text; StudentInformationClass.SetContactNo = obj.ContactNo(txtContactNo.Text); StudentInformationClass.SetAge = obj.Age(txtAge.Text); StudentInformationClass.SetBirthday = obj.datePicker.Value.ToString("yyyy-MM-dd"); frmConfirmation frm = new frmConfirmation(); frm.ShowDialog(); }
the red error says it does not exist in the current context. even though i put it in the windows registrationform