问题描述
我有一个带有两个不同名称空间的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
这篇关于如何从现有项目中打开另一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!