"Tim B" <TimB@discussions.microsoft.com> wrote in message
news:338173AC-8C3A-4734-A61E-294B17AFBD78@microsoft.com...
> Perhaps I used the wrong term, I am trying to host a Windows Form Contol
> in
> IE.
> Here is an example of how it used to work before the patch :
>
>
http://www.15seconds.com/issue/030610.htm >
>
> "Kevin Spencer" wrote:
>
>> A UserControl is a server-side WebControl. I don't understand what you're
>> trying to do here.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> Professional Numbskull
>>
>> Hard work is a medication for which
>> there is no placebo.
>>
>> "Tim B" <Tim B@discussions.microsoft.com> wrote in message
>> news:60B0B7FB-F33F-43B3-8C9F-6720E4809AB4@microsoft.com...
>> > Hi,
>> >
>> > Previously I was loading my .NET Usercontrol like this :
>> >
>> > <OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20
>> > VIEWASTEXT><param name="DONOTHING" value="1">
>> > </OBJECT>
>> >
>> > Everything was working great until the new patch came out and changed
>> > the
>> > way the ActiveX / Usercontrols are loaded.
>> >
>> > I tried using the 'inner html' example located at :
>> >
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp
>> >
>> > But the example did not work for my user control. How can I load my
>> > usercontrol and my parameter in a way that is functional with this
>> > latest
>> > ie
>> > update? Do I need to now specify a codebase ?
>> >
>> > Here is what I tried :
>> >
>> > <script language="JScript">
>> > CreateControl( "EXAMPLE_DIV_ID",
>> > "Viewer.dll#Viewer.Viewer",
>> > "EXAMPLE_OBJECT_ID", "600", "400", "1",)
>> > </script>
>> >
>> > Supporting function :
>> > // external_script.js
>> > function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL,
>> > AUTOSTART)
>> > {
>> > var d = document.getElementById(DivID);
>> > d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + '
>> > width='
>> > +
>> > WIDTH + ' height=' + HEIGHT +'><param name="URL" value=' + URL +
>> > '><param
>> > name="autoStart" value=' + AUTOSTART + '/>';
>> > }
>> >
>> > I get a nice big red X.....
>>
>>
>>