Is this an acceptable way to remove a custom control from the parent container control from inside the custom control? In my case the parent container control and the child control both are panels. Could you suggest me a better way.
protected override void OnKeyDown(KeyEventArgs e){ base.OnKeyDown(e); if (e.KeyCode == Keys.Delete && this.Focused == true) { this.Parent.Controls.Remove(this); } }