FIX: A Visual Basic 6.0 modal form is no longer modal when the form is displayed from a user control in Internet Explorer 8

Article translations Article translations
Article ID: 970157 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

In Microsoft Visual Basic 6.0, a modal form is no longer modal when the form is displayed from a user control in Windows Internet Explorer 8.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:
http://code.msdn.microsoft.com/KB970157


Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.

Note Alternatively, you can download this hotfix rollup from the following Microsoft Connect Web site:
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=20929

Prerequisites

No prerequisites are required.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
x86 version and x64 version for Windows Vista SP1,Windows Vista SP2,Windows Server 2008 SP2 and Windows Server 2008:
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Msvbvm60.dll6.0.98.151,386,496 17-Jun-200912:35x86

Note If you have the same problem in Internet Explorer 7, install the hotfix that is described in the following Microsoft Knowledge Based article:
930828 FIX: A Visual Basic 6.0 modal form is no longer modal when the form is displayed from a user control in Internet Explorer 7

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Open Visual Basic 6.0.
  2. On the File menu, click New Project.
  3. Click ActiveX Control, and then click OK.
  4. In Project Explorer, right-click Project1, click Add, click Form, and then click Open.
  5. Add a new CommandButton object that is named Command1 to the UserControl1 user control.
  6. In Project Explorer, right-click UserControl1, and then click View Code.
  7. In the UserControl1 code window, add the following code:
    Private Sub Command1_Click() Form1.Show vbModal, Me End Sub
  8. Save the new project.
  9. On the File menu, click Make <ProjectName>.ocx.
  10. In the File name box, type Project1.ocx, locate the folder where you saved your project, and then click OK.
  11. Close Visual Basic 6.0.
  12. Open the Package and Deployment Wizard.
  13. Locate the project that you saved in step 9, and then click Package.
  14. In the Package type list, click Internet Package, and then click Next.
  15. Select a directory where the package can be created, and then click Next.
  16. In the Package and Deployment Wizard dialog box that appears, click Yes.
  17. In the Package and Deployment Wizard – Included Files dialog box, click Next.
  18. In the Package and Deployment Wizard – File Source dialog box, click Next.
  19. In the Package and Deployment Wizard – Safety Settings dialog box, click Next.
  20. In the Package and Deployment Wizard – Finished! dialog box, click Finish.
  21. In the <ProjectName>.vbp – Packaging Report dialog box, click Close.
  22. Locate the directory where you created the package.
  23. In Internet Explorer 8, open Project1.htm.
  24. Click the Command1 button. Notice that you can still interact with Internet Explorer.

Properties

Article ID: 970157 - Last Review: July 6, 2009 - Revision: 1.1
APPLIES TO
  • Microsoft Visual Basic 6.0 Enterprise Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Service Pack 6
Keywords: 
kbhotfixserver kbexpertiseadvanced kbsurveynew kbqfe KB970157

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com