我想删除一个控件 却提示
---------------------------
Error
---------------------------
Selection contains a component, DBGridEh1, introduced in an ancestor and cannot be deleted.
---------------------------
OK   
---------------------------这个是什么问题 我哪里设置错误了

解决方案 »

  1.   

    比如你从Tform1继承了一个窗体Tform2,form1中有button1,那form2中 也会继承下来,也会有一个button1,那么如果你此时要删除form2上的button1,就会报错,但是你可以修改button1的caption,大小等属性
      

  2.   

    introduced in an ancestor and cannot be deleted. 
    这句说的很明白了
      

  3.   

    是继承下来的,不能动了
    不过可以调整属性
    大不了visable := false吧