来自包立辉的问题
无法将类型“System.Windows.Forms.Form”隐式转换为“WindowsApplication2.Form1”。存在一个显式转换(是
无法将类型“System.Windows.Forms.Form”隐式转换为“WindowsApplication2.Form1”。存在一个显式转换(是
1回答
2020-12-23 06:42
无法将类型“System.Windows.Forms.Form”隐式转换为“WindowsApplication2.Form1”。存在一个显式转换(是
无法将类型“System.Windows.Forms.Form”隐式转换为“WindowsApplication2.Form1”。存在一个显式转换(是
你好,楼主对问题的描述是不是没有写全。
根据楼主提供的信息来看,问题处在了类型转换上了,Form1是一个窗体类,继承于“System.Windows.Forms.Form”类型,所以从Form1转成Form类型,可以默认转换,而反过来,则需要强制转换,否则,编译时会出现楼主提供的错误信息。