从其他安装了vb6的机器的\windows\system32\mscomm32.ocx等三个文件COPY到现在安装了.NET的机器相同目录中来,然后执行regsvr32 c:\windows\system32\mscomm32.ocx,提示成功,打开.NET自定义工具箱找到了
“microsoft communication control,version 6.0" ,但是加入控件到FORM中时却提示"ActiveX控件不被授权"?
但是却可以这样(在项目中添加对mscomm引用):
dim comm as new mscommlib.mscomm
comm.commport=1
comm......
.........
comm.portopen=true
这样却可以?为什么?
从其他安装了vb6的机器的\windows\system32\mscomm32.ocx等三个文件COPY到现在安装了.NET的机器相同目录中来,然后执行regsvr32 c:\windows\system32\mscomm32.ocx,提示成功,打开.NET自定义工具箱找到了
“microsoft communication control,version 6.0" ,但是加入控件到FORM中时却提示"ActiveX控件不被授权"?
但是却可以这样(在项目中添加对mscomm引用):
dim comm as new mscommlib.mscomm
comm.commport=1
comm......
.........
comm.portopen=true
这样却可以?为什么?