如何使用VB.net在Visual Basic 2010中创建ActiveX控件对象 [英] How to create ActiveX Control objects in visual basic 2010 using VB.net

查看:675
本文介绍了如何使用VB.net在Visual Basic 2010中创建ActiveX控件对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想创建简单的ActiveX控件对象
我正在从事SCADA设计项目,因为我们在屏幕上使用了不同的activex对象,所以这些对象是使用以下方式创建的 具有.OCX扩展名的VB6.
现在我想开发自己的定制
我该怎么做?

最近我也得到了一个.dll对象文件,当我注册该.dll文件时,我可以在我的应用程序中使用该对象,
我如何创建此类对象- Visual Studio中的Activex对象或.DLL对象.

我非常感谢您的帮助.


VRV

Hello Guys,
I want to create simple ActiveX Control objects in visual basic 2010 using VB.net.
I am working on SCADA design project, in that we are using different activex objects on screens, these objects are created using VB6 with .OCX extension. We just register it and use it in our application.
Now i want to develope my own customised ActiveX objects in Visual basics using VB.net.
How can i do this?

Recently i have also got one .dll object file, when i registered that .dll file i am able to use that object in my application, that dll file is - OWC11.dll , i think this is microsoft's object. 

So how can i create such objects - Activex Objects or .DLL objects in visual studio.


Any help i really appreciate.


VRV

推荐答案

您不能真正在.NET中创建本机ActiveX或COM组件.但是,您可以使用COM Interop包装器创建.NET DLL,以便COM应用程序可以注册和访问它.有关更多信息,请参见下面的链接:

You can't really create native ActiveX or COM components in .NET; however, you can create a .NET DLL with a COM Interop wrapper so that it can be registered and accessed by COM applications. See the below link for more info:

演练:使用Visual Basic创建COM对象


这篇关于如何使用VB.net在Visual Basic 2010中创建ActiveX控件对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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