最近想做一个可以选择文件、加密方式进行加密的小东西,于是画了一个winform界面,但当我把form的name由form1改为form时,提示如下错误:"circular base class dependency involving 'testencryption.form' and 'testencryption.form'"
错误的原因就是:the inheritance list for a class includes a direct or indirect reference to itself. a class cannot inherit from itself.即类不能循环继承。
因为修改form的name后,会出现下面这段代码: