private void itmDelete_Click(object sender, System.EventArgs e) { TextForm documentForm = (TextForm)ActiveMdiChild; documentForm.textDelete(); }