Hosting Controls in Internet Explorer

Internet Explorer (IE) supports the OBJECT tag for hosting classic ActiveX controls. In .NET, the OBJECT tag can be used to also host Windows Forms controls and provide accesses to the properties of the hosted control. For those of you familiar with hosting ActiveX controls, the syntax for the OBJECT tag will seem very familiar. The only difference is the CLASSID attribute used to identify the control to be created. The general form of the OBJECT tag is as follows:

<OBJECT ID="<var-name>" CLASSID="http:<assembly>#<qualified-name>" height="<height>"
 width="<width>"> <PARAM NAME="<property-name>" VALUE="<property-value>"> ...

Get .NET Windows® Forms Custom Controls now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.