Microsoft KB Archive/145638

= FIX: Cannot Select Sheridan Tab Control from Modal Form =

Article ID: 145638

Article Last Modified on 12/9/2003

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q145638



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 a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 5.0 and 6.0.



Steps to Reproduce Problem
 Start Visual Basic 4.0. Form1 is created by default.  In the Load event for Form1, place the following line of code: Form2.Show vbModal  Add a new form to the project (on the Insert menu, click Form). Place the Sheridan tab (SSTab) onto Form2. 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.</ol>

<div class="references_section">