BUG: SSTab Focus Given to a Control on a Non-Visible Tab (193021)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q193021 SYMPTOMS
Pressing an ARROW key when a control contained on a SSTab has the focus may
cause focus to be transferred to a control on a Tab that is not visible.
The behavior also occurs if the control on a Tab that is not visible has an
access key (ex. Command2.Caption = "&Command2"). The control's Click event
can be accessed by pressing the ALT+C key combination, even though the
control is on a tab that is not visible.
RESOLUTION
To work around this bug behavior, set the focus to the Tab with the control in the Lost Focus event of the last control in the Tab. If you created the sample project, add the following code to the Form1 code window:
Private Sub Command1_LostFocus()
SSTab1.Tab = 1
SSTab1.SetFocus
End Sub
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbBug kbCtrl kbnofix kbTabCtrl KB193021 |
---|
|