PRB: GPF with MDI Child Form System Menu and Right Arrow Key (159843)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q159843 SYMPTOMS
When you run a Visual Basic application on Windows 95 and you click the
ControlBox at the upper-left corner of a MDIChild form and then press the
right arrow key, you receive the following error:
VB caused a general protection fault in module USER.EXE at 0007:00005b71
This problem does not occur on Windows NT or if the MDIChild form has a
menu.
WORKAROUND
You need to add a menu on the MDIChild form to work around this problem. - Start a new project in Visual Basic. Form1 is created by default.
- Change MDIChild property of Form1 to "True."
- Insert a MDIForm.
- Bring the MDIChild form, Form1, to the foreground.
- Select Tools/Menu Editor.
- Fill in the Caption field or leave it blank.
- Fill in the Name field with a name, for example, MnuHidden. Leave the
other fields unchanged. "Visible" must be checked. Otherwise, a GPF will
occur.
- Click OK, and run the program. Press the RIGHT ARROW key to switch back
and forth between the system menus of the parent and child forms.
(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by May Ji, Microsoft Corporation
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbprb KB159843 |
---|
|