[Delphi]删除控件时出现"Selection contains a component introduced in an ancestor form which cannot be deleted."错误的解决方法

今天在修改程序的时候突然发现删除继承的窗体中的控件属性时出现错误:Selection contains a component introduced in an ancestor form which cannot be deleted. 办法如下:在要删除提示控件的属性右键,选择:Revert to Inherited  或者 去继承组件的父类去操作。