Microsoft KB Archive/190866

= PRB: Modal Forms From ActiveX Docs or Controls Don't Disable IE4 =

Article ID: 190866

Article Last Modified on 5/4/1999

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190866



SYMPTOMS
If you display a modal form from within your ActiveX Document or ActiveX control project running under Internet Explorer 4.x, Internet Explorer window will not be disabled. The user will be able to work with the Internet Explorer window. Toolbars and menu bars of Internet Explorer still work.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Create an ActiveX Document EXE Project in Visual Basic 6.0. Add a form (Form1) to the project. Insert a command button (Command1) on the UserDocument.  Write code for the Command1 Click event: Private Sub Command1_Click Form1.Show vbModal End Sub  Run the project and load the .vbd file in Internet Explorer 4.x. Click the button on the UserDocument to show the form.</li></ol>

You will see that the UserDocument is disabled but Internet Explorer window is not disabled. Internet Explorer menus and toolbars (including address bar) still work even when a Modal form is displayed.

If a modal form is displayed from an ActiveX control hosted in Internet Explorer, there is an additional implication. Your control may be getting Resize and Show events even when the control has displayed a modal form.

Keywords: kbprb kbctrl KB190866

-

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

© Microsoft Corporation. All rights reserved.