如何从现有项目中打开另一个项目 [英] how to open another project from existing project

查看:116
本文介绍了如何从现有项目中打开另一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有两个不同名称空间的2个Windows应用程序。



如果我想从现有表单转到另一个Windows应用程序,我的问题是在调试第一个应用程序之后使用按钮控件...我该怎么办?



例如......第一个Windows应用程序有一个名为submit ...的按钮......那里是用于调用第二个项目的另一个按钮。在点击提交之后执行一些操作,form1运行时放入第二个按钮..当我点击第二个按钮时......如何运行第二个项目(具有不同的名称空间。)....我应该使用添加引用..

i have a 2 windows application with two different namespaces.

my question is after debugging first application if i want to go to another windows application from the existing form using a button control...how do i do?

for example...first windows application has a button named "submit..."...there is another button which is used to called the 2nd project.after clicking submit some action is performed the form1 runs with a second button placed in it..when i click the second button ...how can run the second project(which has different name space.)....am i supposed to use add reference..

推荐答案

add second project into your first project by right clicking on the project in the solution explorer, then select add existing project. after that write code to access reference of windows of second project, but keep in mind about access specifier


这篇关于如何从现有项目中打开另一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆