>I have a modeless form. When the user selects an 'Execute' button on the form how to prevent the user from then closing the modeless form while the method is executing? The 'Execute' commandbutton does not close the form at completion. But I do not want the user to try to close the form either in the middle of the process as it may be long running (I am displaying a status indicator). Thanks.
Did you try disabling (removing) controlbox and back? Something along this idea should work.
If it's not broken, fix it until it is.
My Blog