Knowledge Base

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

Article ID: 190866

Article Last Modified on 5/4/1999


APPLIES TO


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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create an ActiveX Document EXE Project in Visual Basic 6.0.
  2. Add a form (Form1) to the project.
  3. Insert a command button (Command1) on the UserDocument.
  4. Write code for the Command1 Click event:
    Private Sub Command1_Click()
       Form1.Show vbModal
    End Sub
    						
  5. Run the project and load the .vbd file in Internet Explorer 4.x.
  6. Click the button on the UserDocument to show the form.
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