Microsoft KB Archive/300903

= Problem with Visual Basic ActiveX Control Hosting Dhtmled.ocx =

Article ID: 300903

Article Last Modified on 11/23/2006

-

APPLIES TO

 Microsoft Internet Explorer 5.5, when used with:  Microsoft Windows 2000 Standard Edition

 Microsoft Windows NT 4.0

 Microsoft Windows Millennium Edition

 Microsoft Windows 98 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q300903

<div class="symptoms_section">

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.

<div class="cause_section">

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.

<div class="workaround_section">

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 &quot;{TAB}&quot; 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:

https://partner.microsoft.com/global/30000104

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

<div class="status_section">

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

Keywords: kbenv kbprb KB300903

-

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

© Microsoft Corporation. All rights reserved.