Microsoft KB Archive/192211

= PRB: Controls Not Getting Focus After Clicking IE Address Area =

Article ID: 192211

Article Last Modified on 3/1/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q192211



SYMPTOMS
The edit or text region of any control (including text boxes, edit boxes, spinners and combo boxes) in an ActiveDocument does not regain focus after selecting the Address region in Internet Explorer.



RESOLUTION
Try clicking outside of Internet Explorer. For instance, click the Windows Desktop, and then select the text or edit region of the control again in the ActiveDocument to regain focus.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Create a project, named Myactivedoc. Create a form, named Myform. Add a few controls to the form, like text boxes, edit boxes, spinners and combo boxes. Save and add the form to the project. Create a class, named Myclass, based on ActiveDoc.  Place the following code in the Run event of the ActiveDoc class: DO FORM myform READ EVENT </li>  Place the following code in the ContainerRelease event: CLEAR EVENT </li> Save the class as Myactivecls.vcx and add it to the project.</li> Make sure Myactivecls.vcx is "Set To Main" before you build the application.</li> Now, click the Build button and select Build Application to build an application.</li> From the Tools menu, select Run Active Document and type in Myactivedoc.app.</li> Once Myactivedoc.app is hosted in Internet Explorer, click around all the controls and try typing something in the controls. You can type into the text or edit region and move from control to control.</li> Now, click the Address drop-down or type something in the Address text box region in Internet Explorer. The cursor remains in the last control that you clicked or typed in and cannot be moved to the Address region even if you have selected the Address region. Now, click back on the last control used before you clicked the Address region and start typing again. The text that you type appears in the Address region in Internet Explorer and not in the actual control that contains the cursor.</li></ol>

Additional query words: activedoc

Keywords: kbactivedocs kbprb kbpending KB192211

-

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

© Microsoft Corporation. All rights reserved.