删除子窗体中的控件中的某些属性时出现"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.

不知道是什么原因,看到网上有说是IDE的Bug,不知道是不是此原因?

最后我只能选择笨方法来解决:在要删除部分属性的控件上右键,选择:Revert to Inherited 即可.

原文地址:https://www.cnblogs.com/edrp/p/1415689.html