本文主要是介绍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'的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!