用窗口形式应用程序添加类liberary [英] adding of class liberary with window form application

查看:86
本文介绍了用窗口形式应用程序添加类liberary的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加类liberary与窗口形式的应用

解决方案
右键点击,在格兰Solution Explorer窗格中您的解决方案,并选择 添加...新建项目

在出现的对话框中,从中间的列表中选择类库,并给它一个合理的名称。按OK。

构建您的解决方案。

打开项目(再次在解决方案资源管理器中)您要使用类库(例如您的EXE项目)并右键单击参考分支。从下拉列表中选择添加引用。

在对话框中,选择左侧的项目选项卡,然后突出显示类库名称,并按添加,然后关闭 。

您可能希望使用语句将相应的添加到EXE项目代码文件中以使用该库。


how to add class liberary with window form application

解决方案

Right click your solution in teh Solution Explorer pane, and select "Add...New Project"
In the dialog the appears, select "Class Library" from the list in the middle, and give it a sensible name. Press OK.
Build your solution.
Open the project (in Solution Explorer again) you want to use the Class library from (your EXE project for example) and right click the "References" branch. Select "Add Reference" from the drop down list.
In the dialog, select the "Projects" tab on the left, then highlight the class library name, and press "Add", then "Close".
You may want to add the appropriate using statement to the EXE project code files to use the library.


这篇关于用窗口形式应用程序添加类liberary的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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