The problem might be that a MDI form doesn't have a BorderStyle property.