BUG: Incorrectly Accessing System Menu of Hidden Form (74564)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 2.0
  • Microsoft Visual Basic Standard Edition for Windows 3.0
  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0
  • Microsoft Visual Basic Standard Edition for Windows 1.0

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.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start Visual Basic, or choose New Project from the File menu.
  2. Set the WindowState property of Form1 to 1 (minimized).
  3. Enter the following line of code in the Form_Resize event procedure of Form1:
          If WindowState = 2 Then Hide    'WindowState 2 = maximized
    						
  4. From the Run menu, choose Start.
  5. Click the Form1 icon to bring up the system menu for Form1.
  6. From the the Form1 system menu, choose Maximize. Form1 will maximize and then hide.
  7. Press ALT+SPACE to activate the Form1 system menu.
A system menu will appear in the upper left corner of the screen, even though Form1 is hidden.

Modification Type:MajorLast Reviewed:12/12/2003
Keywords:kbbug KB74564