Developing ActiveX Controls Using Visual Basic(2)
Utilizing the ActiveX Control in a Web Page:
Note: The security options on the Internet Explorer should be changed to download and run unsigned ActiveX Controls. You will need to change the classid in the following file to correspond to your control.
Here is the html file that will use the ActiveX Control designed above.
<!-- colorctl.htm -->
<HTML>
<HEAD>
<TITLE> Color Control Test</TITLE>
<H1> ActiveX Control in a Web Page </H1>
<SCRIPT LANGUAGE=VBSCRIPT>
<!--
Option Explicit
Sub clct1_ColorClick()
document.bgcolor=clct1.color
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
<PRE>
<object classid="clsid:93CC2ED1-3017-11D4-9F02-00A0CC28BB43" name=clct1 width=100 height=50
codebase="c:"vb6progs"ColorCtl"prjCol.ocx">
</FORM>
</BODY>
</HTML>
浙公网安备 33010602011771号