protected override void Dispose(bool disposing) { // Before closing the Panel, make sure the user has the option to save any changes this.checkSave(); if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }