天天看點

WinForm中提示Circular base class dependency involving 'TestEncryption.Form' and 'TestEncryption.Form'

        最近想做一個可以選擇檔案、加密方式進行加密的小東西,于是畫了一個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後,會出現下面這段代碼:

WinForm中提示Circular base class dependency involving 'TestEncryption.Form' and 'TestEncryption.Form'

繼續閱讀