如何使用vb.net将Windows控件dll添加到窗体中 [英] How to add a Windows control dll in to a form using vb.net

查看:86
本文介绍了如何使用vb.net将Windows控件dll添加到窗体中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要以下问题的帮助.

我已经在VB.net中创建了一个Windows控件,并另存为dll文件.

我需要通过加载此文件以Windows形式显示此控件.

我该如何做到呢?

谢谢
P A S Saravanan.

Hi Everybody,

I need some help for the following issue.

I have created a windows control in VB.net and saved as dll file.

I need to show this control in a windows form by loading this file.

How can I acheive this.

Thanks
P A S Saravanan.

推荐答案

您只需在项目中添加对该DLL的引用.

http://msdn.microsoft.com/en-us/library/wkze6zky (v = vs.80).aspx [
You simply add a reference to the DLL in your project.

http://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.80).aspx[^]


我提供了运行时使用程序集所需的非常详细的设计框架.

请查看我过去的答案:
创建使用可重载插件的WPF应用程序... [ ^ ],
AppDomain拒绝加载程序集 [
I provided very detailed skeleton of the design required to consume assemblies during run-time.

Please see my past answers:
Create WPF Application that uses Reloadable Plugins...[^],
AppDomain refuses to load an assembly[^].

It may look overly complex, but don''t worry: you probably don''t need to solve most complex problems related to unloadable plug-ins and hence Application Domain. Ignore all this.

You only need to develop plug-in interface, the system to recognize its implementation class in the loaded library and invocation of the constructor via Reflection.

—SA


尝试
如何在运行时通过使用Visual Basic 2005或Visual Basic .NET以编程方式向Windows窗体添加控件 [ ^ ]
Try
How to programmatically add controls to Windows Forms at run time by using Visual Basic 2005 or Visual Basic .NET[^]


这篇关于如何使用vb.net将Windows控件dll添加到窗体中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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