菜单合并引用(.dll 和 .exe)

发布于 2024-07-21 05:14:20 字数 368 浏览 4 评论 0原文

我在尝试与 Mdi 合并菜单时偶然发现了一个不寻常的问题。 基本上,我有一个在一个解决方案中创建的 MdiParent 表单,它将是我在其他项目和解决方案中创建的各种 MdiChild 表单的父级,也将在 MdiParent 项目中引用,该引用将是每个 mdi 子表单类型的 .exe。

我已经测试了我正在使用的属性,但在同一项目中,并且菜单合并在 MdiChild 和 Parent 之间完美运行。 但是,当我使用相同的合并代码但在其中引用了包含我的 MdiChild 的项目的 .exe 的实例时,我没有成功。 我想知道是否有解决方法? 或者一个解决方案。

我引用 .exe 的原因是因为它们是可以独立的项目,并且不仅仅由我创建的 MdiParent 表单使用。

I have stumbled across an unusual problem whilst attempting to menu merge with Mdi. Basically, I have an MdiParent form which I have created in one solution, it will be the parent of a variety of MdiChild forms, which I have created in other projects and solutions, which will be referenced too in the MdiParent Project, the reference will be to the .exe of each mdi child form type.

I have tested the properties that I am using but within the same project and the menu merging works perfectly between MdiChild and Parent. But when I use the same merge code but in the instance of which I have referenced to the .exe of the project that contains my MdiChild, I have no success. I was wondering if there was a workaround for this? Or a solution.

The reason I am referencing the .exe's is because themselves are projects that can be independant, and are not only used by the MdiParent form that I have created.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

比忠 2024-07-28 05:14:20

我有一个类似的问题,我相信它与加载到单独的应用程序域中的对象类型有关,然后使它们成为不同的类型(这里可能是错误的......)

您是否考虑过将父母/孩子放在一个类中图书馆并让你的其他项目引用它?

I had a similar problem, I believe its to do with the object type loaded in to separate app domains which then make them different types (Could be wrong here...)

Have you thought of having the parents / child in the a single class library and having you're other projects reference that?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文