I am in the process of developing a VB.NET 2005 windows application. In a few areas of the application, I have to auto-generate several records, which can take up to a few minutes. So, I am popping up a dialog form with a progress bar during these operations. I have also managed to get the BackgroundWorker control involved so the progress bar actually shows up and moves. The auto-generation of records is running in a background process. So far so good.
NOW...I have set the dialog form to stay on top of everything, but the user can still click on the main application window and switch forms. If they were to do this, my application would error out, as it's expecting a certain form to still be open. How can I prevent the user from being able to do anything in the main application window? Thanks...
NOW...I have set the dialog form to stay on top of everything, but the user can still click on the main application window and switch forms. If they were to do this, my application would error out, as it's expecting a certain form to still be open. How can I prevent the user from being able to do anything in the main application window? Thanks...