public void submit_Click(object sender, EventArgs e) { CForm validateForm = new CForm(); validateForm.validateEvent(title); }