I have a button click event that executes a group of file copy operations. Each copy operation is surrounded in it’s own try/catch. I would like that in the event the user cancels or something goes wrong, it exits the rest of the file copy operations and returns the user back to the main program. Because each of the file copy statements are dependent on certain conditions, I can’t just surround all of them with a single try/catch. Is there a way to do this?
Thanks
you could just put a
returnin the catche.g.