protected override void OnControlRemoved(ControlEventArgs e) { base.OnControlRemoved(e); IDrawDesignControl ddc = e.Control as IDrawDesignControl; if (ddc != null) { DrawGroupBox dgb = this.Item as DrawGroupBox; if (dgb != null) { dgb.OnRemoveItem(ddc); } } }