protected override void OnControlRemoved(ControlEventArgs e) { base.OnControlRemoved (e); // Check if item is in collection if (this.Items.Contains(e.Control)) { // If it is , remove it this.Items.Remove((MozItem) e.Control); } // Refresh Invalidate(); }