I have a form that call a perl script and I use shell command to do the calling. The perl script will run some process. I want to be able to disallow user from closing the form when the process is running until the process finish running. it any user try to close the form, I want an error message, but when the process is done running and a user wants to close the form, its ok.
Below is my code

param1_folderLo c = Convert.ToStrin g(totalSelected .Item(index))...