在一个解决方案中从一个项目切换到另一个 [英] switch from one project to another in one solution

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

问题描述

我有三个项目,我想在一个解决方案中添加它。在vb.net 2010

我的问题是我想要登录表单并根据需要我想要choss proj工作。

但我不知道怎么做。如何在运行时访问另一个项目的形式?

plz帮助解决这个问题...... .....

i have three projects and i want to add it in one solution .in vb.net 2010
my prob is that i want to make a login form and according to need i want to choss proj for work .
but i dont know how to this .how to access the form of another project at run time ?
plz help in this matter ...........

推荐答案

选择您正在处理的项目非常简单:右键单击解决方案资源管理器窗格中的项目名称,然后选择设置为启动项目选项。当您运行解决方案时,这是执行的项目。



在同一解决方案中从不同项目访问表单很简单:只需添加对项目:

右键单击不包含表格的项目。

选择添加参考...

结果对话框,选择左侧的项目选项卡。

突出显示包含表单的项目,然后按添加按钮。



您可能需要在文件中添加 Imports 语句才能访问该表单。
Selecting the project you are working on is pretty easy: right click the project name in the Solution Explorer pane, and select the "Set as StartUp Project" option. When you run the solution, this is the project that is executed.

Accessing a form from a different project in the same solution is easy: just add a reference to the project:
Right click the project that doesn''t contain the form.
Select "Add Reference..."
In the resulting dialog, select the "Project" tab on the left hand side.
Highlight the project containing the form, and press the "Add" button.

You may need to add an Imports statement to your files before you can access the form.


这篇关于在一个解决方案中从一个项目切换到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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