在多种解决方案中形式之间的交换

编程入门 行业动态 更新时间:2024-10-26 23:41:05
本文介绍了在多种解决方案中形式之间的交换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用Windows窗体, i有两个解决方案 解决方案1包含(form1, form2,form3) 解决方案2包含(form4,form5,form6) i将启动项目设置为solution2,并创建从soluion2到solution1的引用。 添加引用后我可以从solution2访问solution1中的所有表单 以同样的方式,如果我从solution1引用到解决方案2它给我一个错误sayig无法进行循环引用 现在问题是如何从solution1访问solution2中的所有表单.. 我的工作流程需要在下面b方式 从表格4开始>形式1->表格5 - >表格2 关于 Deebhan hari

i am using windows form, i have two solution solution 1 contains (form1, form2,form3) solution 2 contains (form4, form5,form6) i have set start up project as solution2 and also create refernce from soluion2 to solution1. after adding reference i can access all my form in solution1 from solution2 in the same manner if i had reference from solution1 to solution 2 it give me a error sayig "Circular reference cannot be made " Now the problem is how do i access all the form in solution2 from solution1.. my workflow need to b in below manner starting Form 4-> Form 1-> Form 5 ->Form 2 With regards Deebhan hari

推荐答案

在解决方案1中添加对解决方案2的引用。 或者更好,移动常用表单,或相互关联的表格成为一个单独的项目(甚至解决方案),并参考两者。这样,互连可以保持在同一个项目中,管理变更变得容易得多。 Add a reference to solution 2 in solution 1 as well. Or better, move the common forms, or interrelated forms into a separate project (or even solution) and reference that from both. That way the interconnections can be kept within the same project and it becomes a lot easier to manage changes.

更多推荐

在多种解决方案中形式之间的交换

本文发布于:2023-11-29 22:08:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1647767.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多种   形式   解决方案

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!