You need to define your form of interruption as modal . Modal window (behind Wikipedia ):
In the design of the user interface, the modal window is a child window that requires users to interact with it before they can return to the parent application, thereby preventing the workflow from entering the main application window. Modal windows are often called heavy windows or modal dialogs, because a window is often used to display a dialog box.
For instance,
myAboutForm.ShowDialog(); instead of myAboutForm.Show(); So:
AboutForm myAboutForm = new AboutForm(); myAboutForm.ShowDialog();
More details in MSDN when displaying modal and modeless windows ,
The modal form or dialog box must be closed or hidden before you can continue working with the rest of the application.
Finally, I'm not sure that Deactivate works the way you think on MSDN:
Occurs when a form loses focus and is no longer an active form.
and
You can use this event to perform tasks such as updating another window in your application with data from a deactivated form.
user195488
source share