/// <summary> /// Removes the first occurrence of a specific <see cref="Control"/> from the <see cref="ControlCollection"/>. /// </summary> /// <param name="child">The <see cref="Control"/> to remove from the <see cref="ControlCollection"/>.</param> /// <returns>true if child is successfully removed; otherwise, false. This method also returns false if child was not found in the <see cref="ControlCollection"/>.</returns> public new bool Remove(Control child) { if (base.Remove(child)) { Libui.BoxDelete(Owner.Handle, child.Index); return true; } return false; }