Problem with Visual Basic ActiveX Control Hosting Dhtmled.ocx (300903)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5.5, when used with:
    • the operating system: Microsoft Windows 2000
    • the operating system: Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows Millennium Edition
    • the operating system: Microsoft Windows 98

This article was previously published under Q300903

SYMPTOMS

If you create a Microsoft Visual Basic ActiveX control that hosts the DHTML Edit control for Internet Explorer 5 (Dhtmled.ocx), and then hosts the Visual Basic control in an HTML page (or in a Visual Basic form), the Dhtmled.ocx control is not activated in the user interface correctly. This can cause unusual behavior, such as the DELETE and CTRL keys not working as expected.

This issue occurs only in Internet Explorer 5.5 (or 5.5 Service Pack 1); it does not occur in Internet Explorer 5.01.

CAUSE

This issue is caused by coding changes in Mshtml.dll. The Dhtmled.ocx control has not been updated or rebuilt to reflect these changes.

WORKAROUND

To work around this issue, add the following code to your Visual Basic control that hosts Dhtmled.ocx.
Private Sub DHTMLEdit1_GotFocus()
    If ActiveControl Is DHTMLEdit1 Then
        SendKeys "{TAB}"
        End If
End Sub

Private Sub DHTMLEdit1_onmousedown()
   If ActiveControl Is Nothing Then
       SetFocus
       End If
End Sub
				
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

STATUS

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

Modification Type:MinorLast Reviewed:9/27/2004
Keywords:kbenv kbprb KB300903