Microsoft KB Archive/161972

= PRB: Displaying a Modal Form Causes the SSTab Control to Blank =

Article ID: 161972

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q161972



SYMPTOMS
The SSTab Object ActiveX control is on a form that calls another modal form. When the modal form is displayed, the SSTab control disappears from the form that it is on.



RESOLUTION
If possible, use the Visual FoxPro PageFrame or do not make the second form modal.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
The SSTab object is an ActiveX control provided with Visual FoxPro 5.0. Before trying the Steps to Reproduce Behavior below, it is a good idea to make sure the SSTab Object is available. To check this, follow these steps:


 * 1) On the Tools menu, click Options. Click the Controls tab.
 * 2) Click the ActiveX controls button. Also make sure the Controls check box under the Show section is selected.
 * 3) Scroll down the list of controls until the SSTab Object is found. Make sure the check box to the left of it is selected.
 * 4) If the SSTab object is not on the list, it should be reinstalled from the Visual FoxPro CD-ROM.

The actual .ocx file for the SSTab Object can be found in the Windows\System folder (if using Windows 95) or the Winnt\System32 folder (if using Windows NT). It is named Tabctl32.ocx. It should be version 4.01.0000 and be 162,064 bytes in size. This information can be found by displaying the properties of the .ocx file in Windows Explorer.

Steps to Reproduce Behavior
 Create a new form. Add an OLE Container Control to the form. In the Insert Object dialog box that appears when the OLE Container control is added to the form, click the Insert Control button. Then scroll down the Control Type list until the SSTab Object is found. Select it and click OK.  Add a push button to the form. Place the following code in the Click method of the button: DO FORM test2.scx  Save this form as Test1.scx and close the form. Create another new form.</li> Set the WindowType property of this new form to 1 - Modal.</li> Save the new form as Test2.scx and close it.</li>  From the Visual FoxPro Command window, issue the following command: DO FORM test1 </li> Move the form out of the top left corner of the screen, so you will be able to discern the second form from the first when it is displayed.</li> Click the button on the form to display the second form. The SSTab Object should disappear at this point. Move the second form if necessary to view the first form.</li> Close the second form with the close box in the upper-right corner. At this point the following error message may appear:

OLE error code 0x80004005: Unspecified error.

</li></ol>

Keywords: kbbug kbprb KB161972

-

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

© Microsoft Corporation. All rights reserved.