Mark Agius
April 14th, 2001, 12:55 PM
Hi.
I have just written my very first ActiveX control component with Visual Basic.
It works when loaded into a Visual Basic program. (I can read and write (Get/Let) the properties)
It also works on a web page BUT if I try to alter the properties with the PARAM tag,
I get the error message;
|
| Some software (ActiveX controls) on this page might be
| unsafe. It is recommended that you not run it. Do you
| wand to allow it to run?
|
| Yes / No
|
Yes
Some properties are set to the new value but some don't.
Also trying to alter some will it from working.
Please see; http://members.aol.com/MCMLXIIman/ActiveX/TestPage.htm
Do you think it is a problem with my HTML code or the code that created my ActiveX component.
I've used the following Visual basic code in my ActiveX component;
Public Property Get ClockHourType() As ClockHourType
ClockHourType = MyHourType
End Property
Public Property Let ClockHourType(SetHourType As ClockHourType)
MyHourType = SetHourType
PropertyChanged "ClockHourType"
SetDisplay
End Property
And the following code in my web page;
<OBJECT ID="MarksClock" WIDTH=73 HEIGHT=33 CLASSID="CLSID:C32A6D4D-3067-11D5-A399-98D604637A36"
CODEBASE="MarksClock.CAB#version=0,0,0,3">
<PARAM NAME=ClockHourType VALUE=-1><!-- 0=h_12, 1=h_24 -->
<PARAM NAME=ClockDigitColor VALUE=&H00000000>
<PARAM NAME=ClockDisplayFont VALUE="Comic Sans MS">
</OBJECT>
Also can anybody recommend any good books on ActiveX written with Visual basic?
Mark Agius (MarkAgius@aol.com)
:o)
I have just written my very first ActiveX control component with Visual Basic.
It works when loaded into a Visual Basic program. (I can read and write (Get/Let) the properties)
It also works on a web page BUT if I try to alter the properties with the PARAM tag,
I get the error message;
|
| Some software (ActiveX controls) on this page might be
| unsafe. It is recommended that you not run it. Do you
| wand to allow it to run?
|
| Yes / No
|
Yes
Some properties are set to the new value but some don't.
Also trying to alter some will it from working.
Please see; http://members.aol.com/MCMLXIIman/ActiveX/TestPage.htm
Do you think it is a problem with my HTML code or the code that created my ActiveX component.
I've used the following Visual basic code in my ActiveX component;
Public Property Get ClockHourType() As ClockHourType
ClockHourType = MyHourType
End Property
Public Property Let ClockHourType(SetHourType As ClockHourType)
MyHourType = SetHourType
PropertyChanged "ClockHourType"
SetDisplay
End Property
And the following code in my web page;
<OBJECT ID="MarksClock" WIDTH=73 HEIGHT=33 CLASSID="CLSID:C32A6D4D-3067-11D5-A399-98D604637A36"
CODEBASE="MarksClock.CAB#version=0,0,0,3">
<PARAM NAME=ClockHourType VALUE=-1><!-- 0=h_12, 1=h_24 -->
<PARAM NAME=ClockDigitColor VALUE=&H00000000>
<PARAM NAME=ClockDisplayFont VALUE="Comic Sans MS">
</OBJECT>
Also can anybody recommend any good books on ActiveX written with Visual basic?
Mark Agius (MarkAgius@aol.com)
:o)