CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Location
    South East England
    Posts
    86

    Can't alter ActiveX properties when added to web page.

    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 ([email protected])


    )
    Don't spend too much time on your computer.
    Sit on a chair instead!!
    It's a lot more comfortable and better for your hardware.

    :-/

  2. #2
    Join Date
    Aug 2000
    Location
    South East England
    Posts
    86

    Re: Can't alter ActiveX properties when added to web page.


    P.S.
    Is there any way it (the ActiveX component)
    can tell if it's part of a Visual basic program or HTML web page.
    I've tried Environ(number?) without any luck.

    Mark Agius ([email protected])
    http://members.aol.com:/MarkAgius


    )
    Don't spend too much time on your computer.
    Sit on a chair instead!!
    It's a lot more comfortable and better for your hardware.

    :-/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured