Microsoft KB Archive/97135

= FIX: No Menu Event with Maximized MDI Child =

Article ID: 97135

Article Last Modified on 10/30/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 2.0 Professional Edition

-



This article was previously published under Q97135



SYMPTOMS
A top level menu's click event on an MDI form isn't fired as it should be when the MDI child is maximized and a sub-menu item exists for that top level menu. There is no click event generated regardless of whether the menu is part of the MDI child or the MDI parent.



STATUS
Microsoft has confirmed this to be a bug in both the Standard and Professional Editions of Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.



Steps to Reproduce Problem
 Start VB.EXE. Change the MDIChild property of Form1 to True. From the File menu, choose New MDI Form (ALT+F+I)  From the Window menu, choose Menu Design (ALT+W+M), and add two menu items. Indent the second item once.   Caption      Name ---     -   &Top Level   mTopLevel &SubMenu    mTopLevelSubMenu   Add the following code to their respective event procedures: Sub mTopLevel_Click Form1.Print &quot;TopLevel&quot; End Sub

Sub mTopLevelSubMenu_Click Form1.Print &quot;SubMenu&quot; End Sub

Sub MDIForm_Load Form1.Show End Sub  From the Run menu, choose Start.</li> Select the Top Level menu item to see a message printed on Form1.</li> Maximize Form1 and Select the Top Level menu item. A message should be printed but is not.</li></ol>

Additional query words: buglist2.00 fixlist3.00 2.00 3.00

Keywords: kbbug kbfix KB97135

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.