Microsoft KB Archive/192207

= BUG: Setting Visible Property Fails on Menu for ActiveX Control =

Article ID: 192207

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q192207



SYMPTOMS
Trying to set the Visible property of a UserControl menu fails. There is no error message but the visible state does not changes.



RESOLUTION
Currently, there is no known workaround for this bug.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Start a new Standard EXE project in Visual Basic. Form1 is created by default. From the File menu, add an ActiveX Control project. UserControl1 is created by default. Bring up UserControl1 in the Visual Basic IDE. Select "Menu Editor" from the Tools menu.  Add the following menu structure to UserControl1, making sure to uncheck the Visible CheckBox on the Menu Editor: Menu1 ---Sub1 Menu2  (Visible = False) ---Sub2  In the Menu Editor, set the NegotiatePosition property to Left for Menu1 and Menu2 (top-level menus). Close the UserControl1 design window, and add an instance of UserControl1 to Form1 of the Standard EXE project.</li>  Add the following code to the Form1 module: Private Sub Sub1_Click Menu1.Visible = False Menu2.Visible = True End Sub

Private Sub Sub2_Click Menu2.Visible = False Menu1.Visible = True End Sub </li> Save the Project group and run it. Select "Sub1" from the "Menu1" menu. Note that Menu2 does not become visible, nor does Menu1 disappear.</li></ol>

Additional query words: kbDSupport kbDSD kbVBp kbCtrl kbVBp600bug kbVBp500bug kbMenu

Keywords: kbbug KB192207

-

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

© Microsoft Corporation. All rights reserved.