BUG: SSTab Is Locked When on Modal Form Shown at Load TimeLast reviewed: September 25, 1997Article ID: Q149274 |
4.00 | 4.00WINDOWS | WINDOWS NT kbprg kbbuglist The information in this article applies to:
SYMPTOMSShowing a modal form in the Form_Load event of a different form causes any SSTab controls on the modal form to ignore all mouse and keyboard commands. This problem occurs with both the 16-bit and 32-bit SSTab OCXs.
WORKAROUNDThis problem occurs only when the tab control is on a form that is shown modally during the load event of another form. To avoid this problem, either show the form non-modally, or show the form modally, but in an event other than the Form_Load event of the first form. Alternatively, one can emulate the appearance of showing the second form modally using a scheme similar to the one outlined below, although any code placed in the Form_Load event will be executed because execution will not pause when the second form is shown. This should be taken into account if code is written using this method. The following code fragment makes the first form invisible and then shows the second form. When the second form is unloaded, one line of code in the Unload event of the second form makes the first form visible again.
' On Form1 Private Sub Form_Load() Form1.Visible = False Form2.Show End Sub ' On Form2 Private Sub Form_Unload() Form1.Visible = True End Sub STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |