/** * Disable delay functionality for the notification box **/ private void disableDelayNotification() { Form3 form3 = (Form3)Application.OpenForms["Form3"]; form3.Invoke((MethodInvoker) delegate() { form3.disableDelayNotification(); }); }