private void dontsave_Click(object sender, EventArgs e) { frm2.ClearTextBox(frm2); // Call the 'ClearTextBox' function from form2. }