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

ID: Q190866


The information in this article applies to:


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.

Additional query words:


Keywords          : kbActiveX kbCtrl kbIE400 kbIE401 kbIE401sp1 kbIE500 
Version           : WINDOWS:4.0,4.01,4.01sp1,6.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 30, 1999