我们可以创建一个dll表单并将其表单导入到窗口应用程序vb.net吗? [英] can we create a dll form and import its form to window application vb.net?
本文介绍了我们可以创建一个dll表单并将其表单导入到窗口应用程序vb.net吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个dll形式而不是一个类,那么我们可以在应用程序中导入并使用它吗?
I want to create a dll form not a class, so can we import and use it form in application? if can how can we use it?
推荐答案
如果您的意思是要在DLL中创建一个表单,然后在多个应用程序中使用它,则它是容易.
1)将新项目添加到您的解决方案中(右键单击该解决方案,然后从上下文菜单中选择添加..新项目...".)
2)在对话框的"Visual Basic"下,选择类库"
3)给它取一个合理的名称(MyGeneralForms或类似名称),然后按OK.
4)右键单击项目名称,然后选择添加... Windows窗体...",按常规进行操作.
您需要将对项目的引用添加到任何需要表单的项目中,并且您可能会发现Imports
语句也有帮助.
If you mean that you want to create a form in a DLL, and then use it in several applications, then it is easy.
1) Add a new project to your solution (right click the solution, and select "Add..New Project..." from the context menu.)
2) In the dialog, under "Visual Basic" select "Class Library"
3) Give it a sensible name (MyGeneralForms or similar) and press OK.
4) Right click the project name, and select "Add...Windows Form..." Proceed as normal.
You will need to add a reference to your project to any projects that want the forms, and you may find that anImports
statement helps as well.
这篇关于我们可以创建一个dll表单并将其表单导入到窗口应用程序vb.net吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文