Okay my problem is this I want stop the user from closing the child form of my problem if there is only one open, but if I set the cancel event to true in the onclosing event it will not allow me to close the program. My first thought was the set a boolean value to check to see if the parent for was being closed but it did not work either. So basically im stumped at the moment.