PDA

Click to See Complete Forum and Search --> : How to move ActiveX-object in DHTML-project in run-time?


BartT
Aug 19th, 2000, 10:25 AM
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

BartT
Aug 22nd, 2000, 01:48 AM
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.