protected override void Dispose(bool disposing) { if (disposing) { HandleCreated -= OnHandleCreated; } base.Dispose(disposing); }