且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在一个项目中将表单作为另一个项目中的子项

更新时间:2023-01-08 14:10:11

您可以在当前项目中添加参考到其他项目;只需引用.exe或.dll(如果它是类库)。



(是的; .exe可以像.dll一样访问。因为访问的表单/窗口/类是公开的。
You can add a "reference" in your current project to the "other" project; just reference the .exe or the .dll (if it's a class library).

(Yes; an .exe can be accessed as you would a .dll as long as the accessed form / window / class is public).