所包含的表单在Intellisense中未显示表单名称吗? [英] Included form not showing form name in Intellisense?

查看:67
本文介绍了所包含的表单在Intellisense中未显示表单名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我正在一个项目上,我想包括另一个项目中的一些以前的作品,我通过以下步骤将该项目包括在内:
VS2005->解决方案经验->右键单击->添加->现有项目.
完成此操作后,当我想使用同一项目时,VS2005 intellisense中不会显示其表单名称.

有人可以帮我解决这个问题吗?

Dear All,
I am working on a project and i wanted to include some of my previous works from another project, i included that project by following steps:
VS2005 --> Solution Exp. --> Right click --> Add --> Existing Project.
after doing this when i wanted to use the same project it''s form name is not shown in the VS2005 intellisense.

Can any one help me out with this?

推荐答案

那是因为当您想在其他项目中使用包含的项目时,必须添加引用您要在其中使用它的项目中.
如果在名为MySolution的解决方案中有一个名为MyProject的项目,并且已将现有项目添加到该解决方案中(称为MyOtherProject),则:
在MyProject中,右键单击参考",然后选择添加参考...".
在出现的对话框中(最终),选择项目"选项卡.
在列表中,选择"MyOtherProject",然后按确定".

您可能还想在MyProject中的每个源代码文件的顶部添加using MyOtherProject行.
That''s because when you want to use the included project in a different project, you have to add a reference to it in the project you want to use it in.
If you have a project called MyProject, in a solution called MySolution, and you have added an existing Project to the solution (called MyOtherProject) then:
In MyProject, right click on "References" and select "Add Reference...".
In the dialog that appears (eventually), select the "Projects" tab.
In the list, select "MyOtherProject" and press "OK".

You may want to add a using MyOtherProject line to the top of each source code file in MyProject as well.


尽管解决方案中现在包括了该项目,但您仍然需要添加一个引用原始项目中添加的项目,您仍然需要在原始项目的代码文件中包含using语句,该语句需要与添加的项目进行交互.

希望对您有帮助
Although the project is now included in the solution, you still need to add a reference to the added project in the original project, and you still need to include a using statement in your code files of the original project that need to interact with the added project.

Hope this helps


这篇关于所包含的表单在Intellisense中未显示表单名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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