Microsoft KB Archive/328962

= BUG: Windows Form Control Does Not Appear in an Element Behavior =

Article ID: 328962

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Internet Explorer (Programming) 6 (SP1)
 * Microsoft Internet Explorer (Programming) 6.0

-



This article was previously published under Q328962



SYMPTOMS
When you host a Windows Form control in an element behavior, the element behavior does not appear.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Problem
 Create a Windows Form control, and then name the control TestControl1.dll.  Use the following HTC code to create a simple element behavior:   

This green box is the element behavior. Control should be between here:  and here.

  Use the following code to create a simple HTML test page to host the element behavior:  <HEAD> <?import namespace=&quot;net&quot; implementation=&quot;test.htc&quot;> </HEAD> <BODY>

<net:net></net:net> This is the same WinForm control sitting on the Web page instead of the element behavior <object width=200 height=400 classid=&quot;TestControl1.dll#TestControl1.UserControl1&quot;>

</BODY> </HTML> </li> Copy the files (Test.htm, Test.htc, and TestControl1.dll) on a Web server, and then open the page in Internet Explorer. Notice that the Windows Form control on the HTML page appears but does not appear in the element behavior.</li></ol>

Keywords: kbbug kbdhtml KB328962

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.