DOCUMENT:Q150033 03-JUN-1997 [vbwin] TITLE :BUG: Clicking Menu Does Not Go Straight to the Click Event PRODUCT :Microsoft Visual Basic for Windows PROD/VER:4.0 OPER/SYS:NT WINDOWS KEYWORDS:kbprg PrgCtrlsStd VB4WIN buglist4.00 kbbuglist kbprb kbprg ====================================================================== -------------------------------------------------------------------- The information in this article applies to: - Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, version 4.0, for Windows -------------------------------------------------------------------- SYMPTOMS ======= When you click on a menu item in Design mode, the Click event for that menu item should always appear in the code window. However, this behavior does not occur when you access the Property window before clicking a menu item and the WindowList check box has been clicked for that menu item. The code window appears, but it is set for the General Declarations section. STATUS ====== Microsoft has confirmed this to be a issue in the Microsoft products listed at the beginning of this article. We are researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Start a new project. Form1 is created by default. 2. From the Microsoft Visual Basic menu, select Tools, and then select Menu Editor. For the Caption, type "a." For the Name, type "Mnua." Select the WindowList check box, and click OK. 3. Press the F4 key to bring up the Properties window. From the Properties window, select Mnua. Change the Caption property to "b." 4. Click on menu b on the form. The General Declarations section in the code window displays. ====================================================================== Keywords : kbprg PrgCtrlsStd VB4WIN buglist4.00 kbbuglist kbprb kbprg Version : 4.0 Platform : NT WINDOWS Issue type : kbprb Resolution Type : Info_Provided ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1997.