BUG: Cannot Select Sheridan Tab Control from Modal Form

Last reviewed: September 25, 1997
Article ID: Q145638
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

When showing a Modal form containing the Sheridan Tab control from the Load event of another form, none of the Tabs on this dialog box can be selected.

RESOLUTION

Instead of showing the second form from the Load event of another form, show the form in the Activate event. The following code could be used as a workaround:

   Private Sub Form_Activate()
     Static AlreadyShown As Boolean
     If Not AlreadyShown Then
       Form2.Show vbModal
     End If
     AlreadyShown = True
   End Sub

STATUS

Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start Visual Basic 4.0. Form1 is created by default.

  2. In the Load event for Form1, place the following line of code:

          Form2.Show vbModal
    

  3. Add a new form to the project (on the Insert menu, click Form).

  4. Place the Sheridan tab (SSTab) onto Form2.

  5. Run the project by pressing the F5 key. On Form2, try clicking on any of the Tabs on the Sheridan control. None of these Tabs can be selected.

REFERENCES

For more information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q149274
   TITLE     : BUG: SSTab Is Locked When on Modal Form Shown at Load Time
Keywords          : PrgCtrlsThird VB4ALL VB4WIN
Version           : WINDOWS:4.0
Platform          : WINDOWS
Issue type        : kbbug


================================================================================


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: September 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.