On clicking a button, a query is executed in a background worker. It is asynchronous so that I can change the button to "Cancel" so the user can cancel the process if it runs longer than expected. This all works fine.
But, I do not want the user to be able to navigate away from this location to do other things on the form. They must be able to click the Cancel button or close the form, but nothing else.