Microsoft KB Archive/298501

= BUG: Menu Item Caption Is Displayed Incorrectly When You Change It from Parent Menu =

Article ID: 298501

Article Last Modified on 10/15/2002

-

APPLIES TO

 Microsoft Visual Basic 5.0 Enterprise Edition, when used with:  Microsoft Windows NT 4.0

 Microsoft Windows 95  Microsoft Visual Basic 6.0 Enterprise Edition, when used with:  Microsoft Windows NT 4.0

 Microsoft Windows 95</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q298501

<div class="symptoms_section">

SYMPTOMS
On a computer that is running Windows 95 or Windows NT 4.0, if you change the caption of a menu item that has a shortcut key in the parent menu click event, the new caption is displayed incorrectly.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
If you change the menu item caption from any other event, or if you change it in the parent menu click event while you are running on another operating system, the changed caption is displayed correctly.

Steps to Reproduce Behavior
<ol> On a Windows 95-based or a Windows NT 4.0-based system, create a new Standard EXE project in Visual Basic. Form1 is created by default.</li> Select Form1. From the Tools menu, click Menu Editor, or click the Menu Editor button on the toolbar.</li> In the Caption text box, type Edit. This is the parent item that appears on the menu bar.</li> In the Name text box, type mnuEdit, and then click Next to create another menu item.</li> In the Caption text box, type Copy .</li> In the Name text box, type mnuCopy .</li> In the Shortcut combo box, click the CTRL+C key combination.</li> Click the right arrow button to change the indentation level of the item, and then click OK to close the Menu Editor dialog box.</li>  Paste the following code in the general declarations section of Form1: Private Sub mnuEdit_Click mnuCopy.Caption = &quot;Paste&quot; End Sub </li> Press F5 to run the project, and then click the Edit menu. Notice that the caption of the child menu item is not displayed correctly.</li></ol>

Additional query words: properly

Keywords: kbbug kbmenu kb32bitonly kbpending KB298501

-

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

© Microsoft Corporation. All rights reserved.