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
This article has been archived. It is offered "as is" and will no longer be updated.
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 7.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:
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 If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
PrerequisitesNo prerequisites are required.
Restart requirementYou do not have to restart your computer after you apply this hotfix.
Hotfix replacement informationThis hotfix does not replace any other hotfixes.
File informationThe 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.
|File name||File version||File size||Date||Time||Platform|
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Steps to reproduce the problem
- Open Visual Basic 6.0.
- On the File menu, click New Project.
- Click ActiveX Control, and then click OK.
- In Project Explorer, right-click Project1, click Add, click Form, and then click Open.
- Add a new CommandButton object that is named Command1 to the UserControl1 user control.
- In Project Explorer, right-click UserControl1, and then click View Code.
- In the UserControl1 code window, add the following code:
Private Sub Command1_Click() Form1.Show vbModal, MeEnd Sub
- Save the new project.
- On the File menu, click Make <ProjectName>.ocx.
- In the File name box, type Project1.ocx, locate the folder where you saved your project, and then click OK.
- Close Visual Basic 6.0.
- Open the Package and Deployment Wizard.
- Locate the project that you saved in step 9, and then click Package.
- In the Package type list, click Internet Package, and then click Next.
- Select a directory where the package can be created, and then click Next.
- In the Package and Deployment Wizard dialog box that appears, click Yes.
- In the Package and Deployment Wizard – Included Files dialog box, click Next.
- In the Package and Deployment Wizard – File Source dialog box, click Next.
- In the Package and Deployment Wizard – Safety Settings dialog box, click Next.
- In the Package and Deployment Wizard – Finished! dialog box, click Finish.
- In the <ProjectName>.vbp – Packaging Report dialog box, click Close.
- Locate the directory where you created the package.
- In Internet Explorer 7, open Project1.htm.
- Click the Command1 button. Notice that you can still interact with Internet Explorer.
Article ID: 930828 - Last Review: 12/09/2015 09:09:43 - Revision: 4.0
Microsoft Visual Basic 6.0 Professional Edition
- kbnosurvey kbarchive kbvistasp1fix kbvs600sp6fix kbfix kbbug kbqfe KB930828