BUG: Windows Form Control Does Not Appear in an Element Behavior (328962)



The information in this article 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.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Create a Windows Form control, and then name the control TestControl1.dll.
  2. Use the following HTC code to create a simple element behavior:
    <public:component tagName="net">
      <public:defaults viewLinkContent="true" />	
    </public:component>
    
    <body bgcolor=green>
    This green box is the element behavior.<br>
    Control should be between here:<br>
    <object width=200 height=400 classid="TestControl1.dll#TestControl1.UserControl1"></object>
    <BR>and here.
    
    </body>
  3. Use the following code to create a simple HTML test page to host the element behavior:
    <html xmlns:net>
    <HEAD>
    <?import namespace="net" implementation="test.htc">
    </HEAD>
    <BODY>
    
    <net:net></net:net>	
    <br>
    <hr>
    <br>
    This is the same WinForm control sitting on the Web page instead of the element behavior<br><br>
    <object width=200 height=400 classid="TestControl1.dll#TestControl1.UserControl1"></object>
    
    </BODY>
    </HTML>
  4. 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.

Modification Type:MajorLast Reviewed:5/12/2003
Keywords:kbbug kbDHTML KB328962