Article ID: 223092 - Last Review: May 11, 2006 - Revision: 3.0

FIX: Using VB with Modal Form Fails in Internet Explorer

This article was previously published under Q223092

On This Page

Expand all | Collapse all

SYMPTOMS

When you shut down Internet Explorer, the following error message appears:
This browser window (or ActiveX control in this page) is busy.
Closing this window may cause some problems.

Do you want to close it anyway?

STATUS

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

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
194022  (http://support.microsoft.com/kb/194022/EN-US/ ) INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295  (http://support.microsoft.com/kb/194295/EN-US/ ) HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

This situation occurs when an ActiveX Document DLL project runs at the Visual Basic Integrated Development Environment (IDE) or an ActiveX Document EXE project runs either at design time or at runtime in Internet Explorer.

Steps to Reproduce Behavior

  1. Create a new ActiveX Document EXE project with Visual Basic.
  2. Create a Command Button on the User Document.
  3. Write the following code to User Document:
    Private Sub Command1_Click()
          Dim frm1 As New Form1
          frm1.Show vbModal, Me
          Unload frm1
          Set frm1 = Nothing
    End Sub
    						
  4. Add a new form called form1 in the project.
  5. Create a Command Button on this form.
  6. Put the following code to the form:
    Private Sub Command1_Click()
         Dim frm1 As New Form1
         frm1.Show vbModal, Me
         Unload frm1
         Set frm1 = Nothing
    End Sub
    						
  7. Run the project.
  8. Click the Command1 button. Form1 appears.
  9. Click the button on Form1. Another instance of the Form appears.
  10. Close all the forms.
  11. Close the Internet Explorer window.
The following error message appears:
This browser window (or ActiveX control in this page) is busy.
Closing this window may cause some problems.

Do you want to close it anyway?

REFERENCES

For additional information related to ActiveX Documents and Internet Explorer, click the article numbers below to view the articles in the Microsoft Knowledge Base:
171825  (http://support.microsoft.com/kb/171825/EN-US/ ) FIX: Tabbing Problems Using ActiveX Document in a Frame
200027  (http://support.microsoft.com/kb/200027/EN-US/ ) HOWTO: Tell if Internet Explorer is Offline from an ActiveX Doc
168428  (http://support.microsoft.com/kb/168428/EN-US/ ) HOWTO: Test Your ActiveX Documents (.VBD)
167380  (http://support.microsoft.com/kb/167380/EN-US/ ) PRB: IE Reports Unknown Type .VBD for ActiveX Document
176468  (http://support.microsoft.com/kb/176468/EN-US/ ) INFO: Behavior of Forms in an ActiveX Document
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
http://msdn.microsoft.com/ie/ (http://msdn.microsoft.com/ie/)

http://support.microsoft.com/iep (http://support.microsoft.com/iep)

APPLIES TO
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
  • Microsoft Internet Explorer 4.01 Service Pack 1
  • Microsoft Internet Explorer 4.01 Service Pack 2
Keywords: 
kbbug kbfix kbinetdev kbvs600sp3fix KB223092
 

Article Translations

 

Related Support Centers