PRB: Can't See Objects on Back Tabs If Using VB SSTAB Control

Last reviewed: February 28, 1997
Article ID: Q142156
4.00 5.00 | 4.00 5.00
WINDOWS   | WINDOWS NT
kbui kbprb

The information in this article applies to:

  • Microsoft Visual SourceSafe for Windows, versions 4.0, 5.0
  • Microsoft Visual SourceSafe for Windows NT, versions 4.0, 5.0
  • Microsoft Visual SourceSafe for Windows 95, versions 4.0, 5.0
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

The SSTAB control is used in Visual Basic 4.0 to allow controls to be placed on different tabs and seen when the user clicks that tab. However, when using Source Code Control (SCC) in Visual Basic, if the form that the tab control is on is not checked out (read only), then only objects on the top level tab are seen no matter what tab is selected. This occurs in design mode.

CAUSE

Enabling SourceSafe through the ADD-INS Manager forces Visual Basic into Strict read-only mode. The SSTAB control relies on being able to change the properties of the form when you click different tabs in the control. When Visual Basic is in strict read-only mode, it can't display the objects on the back tabs because Visual Basic won't allow changes to the form. For more information about how the SSTAB control displays child controls, please refer to the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q150417
   TITLE     : PRB: Read-Only SSTab Does Not Display Child Controls
                    Properly


RESOLUTION

The form can be checked out and will function normally in design mode. Also, removing Source Code Control from the ADD-INs Manager will allow the control to function properly.

Another workaround would be to get the file from the Visual SourceSafe explorer and check the Make writable option on the get dialog box, then quit and restart Visual Basic.

STATUS

This behavior is by design.

MORE INFORMATION

This is a limitation of the SSTAB control in Visual Basic. There is no way to address this behavior in Visual SourceSafe. The tab control would have to be re-written so that it doesn't rely on changing the Forms properties to display different tabs.


KBCategory: kbui kbprb
KBSubcategory: SourceSafe ssvb
Additional reference words: 4.00 5.00
Keywords : SourceSafe ssvb kbprb kbui
Version : 4.00 5.00 | 4.00 5.00
Platform : NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.