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

        最近想做一个可以选择文件、加密方式进行加密的小东西,于是画了一个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后,会出现下面这段代码:

目录
打赏
0
0
0
0
7
分享
相关文章
解决ServletException: Circular view path异常的方法
解决`ServletException: Circular view path`异常涉及检查视图路径配置、请求处理逻辑、依赖版本冲突,以及使用重定向、注意`forward`和`include`的使用。检查代码中是否存在循环调用并修正,参考Spring MVC文档和Stack Overflow相关问题。
378 1
|
10月前
Angular多个页面引入同一个组件报错The Component ‘MyComponentComponent‘ is declared by more than one NgModule怎么办?
Angular多个页面引入同一个组件报错The Component ‘MyComponentComponent‘ is declared by more than one NgModule怎么办?
设置Angular路径别名用于ts、js、scss、less
设置Angular路径别名用于ts、js、scss、less
【Vue Error】 error Component name “product“ should always be multi-word vue/multi-word-compone……
【Vue Error】 error Component name “product“ should always be multi-word vue/multi-word-compone……
Vue中遇到的Bug( Component name “School“ should always be multi-word vue/multi-word-component-names)
Vue中遇到的Bug( Component name “School“ should always be multi-word vue/multi-word-component-names)
179 0
使用antd-theme-webpack-plugin报错Error LessError: Cannot find module ‘antd/lib/style/themes/default.less
使用antd-theme-webpack-plugin报错Error LessError: Cannot find module ‘antd/lib/style/themes/default.less
1188 0
使用antd-theme-webpack-plugin报错Error LessError: Cannot find module ‘antd/lib/style/themes/default.less
【Angular教程】-内容投影/@ContentChild/@ViewChild
【Angular教程】-内容投影/@ContentChild/@ViewChild
333 0
【Angular教程】-内容投影/@ContentChild/@ViewChild