Results 1 to 2 of 2

Thread: How to move ActiveX-object in DHTML-project in run-time?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2

    Smile

    In a DHTML-application I use an ActiveX-control. In DHTML itself I can change the style-propeties, but from within VB6 the style propeties can be accessed in design time (auto-complete and so on), but during run-time it results in an 'object does not support this method or propety'

    So in HTML-page:
    <OBJECT Classid= ID=ActiveX etc..

    and in VB-sub:
    ActiveX.style.Top = 0

    This doesn't work. What's wrong or How can I change the position and z-order in a different matter from within an VB-sub?

    thanks!! Bart



  2. #2

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2

    Thumbs up

    Using a <DIV>-tag solves the problem

    <DIV ID=idDiv>
    <OBJECT class=activeXclass ID=ActiveXID style="width:100%;height:100%;position:relative">
    <PARAM....>
    </OBJECT>
    </DIV>

    now idDiv.style.Top = 0 works fine

    only problem is that VB6 IDE doesn't support to place the DIV-tag around the ActiveX object.

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