Microsoft KB Archive/290708

= PRB: BorderStyle Property May Prevent Taskbar from Appearing =

Article ID: 290708

Article Last Modified on 9/27/2004

-

APPLIES TO

 Microsoft Visual FoxPro 5.0 Standard Edition, when used with:  Microsoft Windows Millennium Edition

 Microsoft Windows 2000 Standard Edition  Microsoft Visual FoxPro 5.0a, when used with:  Microsoft Windows Millennium Edition

 Microsoft Windows 2000 Standard Edition</li></ul> </li> Microsoft Visual FoxPro 6.0 Professional Edition, when used with:  Microsoft Windows Millennium Edition</li></ul>

 Microsoft Windows 2000 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q290708

<div class="symptoms_section">

SYMPTOMS
The Windows taskbar has the Always on Top and AutoHide properties set on. When a Visual FoxPro top-level form is maximized and the BorderSyle property has any value other than 3-Sizable, the Windows taskbar may not appear when the mouse moves over the edge of the form.

<div class="resolution_section">

RESOLUTION
Set the BorderStyle property to 3-Sizable.

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> On Windows 2000 and Windows Me, set the Windows taskbar properties to Always on Top and Auto Hide.</li>  Place the following code in a program and then run it: PUBLIC Y Y=CREATEOBJECT(&quot;formtest&quot;) Y.SHOW RETURN DEFINE CLASS formtest AS FORM CAPTION = &quot;Form1&quot; SHOWWINDOW = 2 BORDERSTYLE = 0 MAXBUTTON = .F.       CLOSABLE = .F.        WINDOWSTATE = 2 VISIBLE=.T.   HEIGHT=200 WIDTH=375 ADD OBJECT extbtn AS COMMANDBUTTON WITH ; HEIGHT = 24, ; LEFT = 72, ; TOP = 48, ; WIDTH = 108, ; CAPTION = &quot;Exit&quot; VISIBLE=.T.
 * A BorderStyle of 1 or 2 also fails.
 * Change BorderStyle to 3 and it works.

PROCEDURE extbtn.CLICK THISFORM.RELEASE ENDPROC ENDDEFINE </li> After the form appears, move the mouse over the bottom edge of the form. Note that the taskbar does not appear.</li> Open the program and change the BorderStyle property of the form to either 1 or 2. Run the code and perform step 3 again. Again, the taskbar does not appear.</li> Open the program and change the BorderStyle property of the form to 3. Run the code and perform step 3 again. The taskbar now appears.</li></ol>

Keywords: kbcodesnippet kbcontainer kbctrl kbpending kbprb KB290708

-

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

© Microsoft Corporation. All rights reserved.