Microsoft KB Archive/246034

From BetaArchive Wiki
Knowledge Base


PRB: ActiveX Control Fails to Appear on HTML Page

Article ID: 246034

Article Last Modified on 7/20/2001



APPLIES TO

  • Microsoft Internet Explorer 3.0
  • Microsoft Internet Explorer 3.01
  • Microsoft Internet Explorer 3.02
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 4.01 Service Pack 1
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 5.0



This article was previously published under Q246034

SYMPTOMS

An ActiveX control added to an HTML page fails to appear or seems invisible. There is no indication that the control should be on the page; the standard icons for control failure--a white X in a red box, a dot in a white box, or a triangle/square/sphere icon--do not appear.

This behavior may suddenly appear after adding one or more PARAM tags to the declaration of the OBJECT tag for the control.

CAUSE

The OBJECT tag does not specify a HEIGHT and WIDTH attribute.

RESOLUTION

Add WIDTH and HEIGHT attributes for the OBJECT tag. Here is an example OBJECT tag for a Visual Basic User Control that specifies a HEIGHT and WIDTH:

<OBJECT ID="TestCtl"
CLASSID="CLSID:8A486961-4A14-0000-CCCC-615137992B84"
CODEBASE="Test.CAB#version=1,0,0,1"
WIDTH=200 HEIGHT=200>
<PARAM NAME="MyText" VALUE="THIS">
</OBJECT>
                

Alternatively, for Visual Basic controls, specify _ExtentX and _ExtentY parameters as specified in following example:

<OBJECT ID="TestCtl"
CLASSID="CLSID:8A486961-4A14-0000-CCCC-615137992B84"
CODEBASE="Test.CAB#version=1,0,0,1"
>
<PARAM NAME="_ExtentX" VALUE="4000">
<PARAM NAME="_ExtentY" VALUE="4000">
<PARAM NAME="MyText" VALUE="THIS">
</OBJECT>
                

STATUS

This behavior is by design.

Keywords: kbprb kbdhtml KB246034