FIX: Form Covers Windows TaskBar Even If Set as "Always on Top" (184343)



The information in this article applies to:

  • Microsoft Visual Basic Learning Edition for Windows 6.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Visual Basic Control Creation Edition for Windows 5.0
  • Microsoft Visual Basic Learning Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
  • Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
  • Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
  • Microsoft Visual Basic Standard Edition for Windows 3.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0

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.

MORE INFORMATION

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.

Modification Type:MajorLast Reviewed:6/30/2004
Keywords:kbBug kbfix kbForms KB184343