Microsoft KB Archive/184343

= FIX: Form Covers Windows TaskBar Even If Set as "Always on Top" =

Article ID: 184343

Article Last Modified on 6/30/2004

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q184343



SYMPTOMS
When displaying a Visual Basic form, the Windows 95, Windows 98, or Windows NT Taskbar is covered by the form even though the "Always on Top" property of the Taskbar is checked.



CAUSE
This problem occurs when the form's WindowState property is set to Maximized and the form's MaxButton property is set to False.



RESOLUTION
To work around this problem, set the form's MaxButton property to True at design-time.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. This problem no longer occurs in Windows 2000.



Steps to Reproduce Behavior

 * 1) Create a new Visual Basic project. Form1 is created by default.
 * 2) Set the MaxButton property of Form1 to "False".
 * 3) Set the WindowState property of Form1 to "2 - Maximized".
 * 4) Run the sample.

RESULT: The Windows Taskbar is covered by the form, which completely fills the screen.

Keywords: kbbug kbfix kbforms KB184343

-

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

© Microsoft Corporation. All rights reserved.