如何在C#.NET中创建OCX控件 [英] how to create the OCX control in C#.NET

查看:692
本文介绍了如何在C#.NET中创建OCX控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C#.NET中创建OCX控件

我已经在C#.NET&中创建了用户控件使用regasm注册.但是当我使用其他软件时,它将显示错误消息,例如无法创建指定ActiveX的对象",或者使用regsvr32注册,它将显示以下消息
---------------------------
RegSvr32
---------------------------
D:\ ABc \ ABc \ bin \ Debug \ ABc.dll已加载,但未找到DllRegisterServer入口点.

该文件无法注册.
---------------------------
OK
---------------------------

将Windows窗体控件公开为ActiveX控件 [ ^ ]
在此示例中使用了相同的编码
感谢

how to create the OCX control in C#.NET

i have already creating the user control in C#.NET & register using regasm .but when i have used this another software it will display the error message like "can not create object of specified ActiveX" or register using regsvr32 it will show following message
---------------------------
RegSvr32
---------------------------
D:\ABc\ABc\bin\Debug\ABc.dll was loaded, but the DllRegisterServer entry point was not found.

This file can not be registered.
---------------------------
OK
---------------------------

Exposing Windows Forms Controls as ActiveX controls[^]
used the same coding in this example
thanks

推荐答案

阅读:


.ocx控件在VB6.0中使用,可能是您在寻找c#中的用户定义的控件
通过以下链接

.ocx controls are used in VB6.0 , may be you are looking for user defined controls in c#
go through the below link
User controls in c# [^]


这篇关于如何在C#.NET中创建OCX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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