Microsoft KB Archive/74564

= BUG: Incorrectly Accessing System Menu of Hidden Form =

Article ID: 74564

Article Last Modified on 12/12/2003

-

APPLIES TO


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

-



This article was previously published under Q74564



SYMPTOMS
It is possible under certain circumstances to incorrectly access the system menu of a hidden form in Visual Basic.



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.



Steps to Reproduce Problem
 Start Visual Basic, or choose New Project from the File menu. Set the WindowState property of Form1 to 1 (minimized).  Enter the following line of code in the Form_Resize event procedure of Form1: If WindowState = 2 Then Hide   'WindowState 2 = maximized  From the Run menu, choose Start. Click the Form1 icon to bring up the system menu for Form1. From the the Form1 system menu, choose Maximize. Form1 will maximize and then hide.</li> Press ALT+SPACE to activate the Form1 system menu.</li></ol>

A system menu will appear in the upper left corner of the screen, even though Form1 is hidden.

Additional query words: buglist1.00 buglist2.00 buglist3.00 2.00 3.00

Keywords: kbbug KB74564

-

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

© Microsoft Corporation. All rights reserved.