Help and Support

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

Article ID:930828
Last Review:September 11, 2007
Revision:2.5
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 7.

Back to the top

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. But the hotfix is intended only to correct the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2005 service pack that contains this hotfix. To resolve this problem immediately, visit the following Microsoft Web site:
http://go.microsoft.com/fwlink/?linkid=87456 (http://go.microsoft.com/fwlink/?linkid=87456)

Prerequisites

No prerequisites are required.

Restart requirement

You do not have to restart your 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.
File nameFile versionFile sizeDateTimePlatform
Msvbvm60.dll6.0.97.981,386,49612-Jan-200704:33x86

Back to the top

STATUS

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

Back to the top

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 (http://support.microsoft.com/kb/824684/) Description of the standard terminology that is used to describe Microsoft software updates

Back to the top

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

Back to the top


APPLIES TO
Microsoft Visual Basic 6.0 Enterprise Edition
Microsoft Visual Basic 6.0 Professional Edition
Microsoft Visual Studio 6.0 Service Pack 6

Back to the top

Keywords: 
kbvistasp1fix kbvs600sp6fix kbfix kbbug kbqfe kbhotfixserver kbpubtypekc KB930828

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.