作者:5欣欣向荣_135 | 来源:互联网 | 2023-05-18 23:14
下面是SimpleControl,是2003的一个例子我没找到,我作个ACTIVEX想<paramnameTextvalueSimpleControl>用上面的
下面是SimpleControl,是2003的一个例子我没找到,我作个ACTIVEX想
用上面的语句把参数传给ACTIVEX请问怎么办
1. Windows Forms Control : SimpleControl.dll
Almost any Windows Forms control could be, but for this example the SimpleControl that is included in the .NET Framework SDK QuickStart Tutorial Creating Controls will be used.
2. HTML Document : SimpleControl.html
The next step is to create an HTML document with and object tag to insert and activate the Windows Forms control. Some simple script and input tags will also be added to demonstrate programmatic access to the control.
Object tag
1 个解决方案
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface ICOMControl
{
string IP { set;get; }
}
public partial class JXPMaxHikClient : UserControl, ICOMControl
{
private string _IP;
public string IP
{
set
{
_IP = value;
}
get
{
return _IP;
}
}
...........
}
外部传值IP,内部调用 _IP