FIX: Arrows to Scroll Tabs in TabStrip Control Not Shown (151078)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q151078 SYMPTOMS
The TabStrip control provides arrows to scroll Tabs inside the control if
there are more Tabs than can be displayed in the available width of the
control. However, these arrows only appear on the Tabstrip control after
certain properties of the control have been used in code.
RESOLUTION
To cause the arrows to appear, refer to a property such as the Caption of
the Tab in the Load event of the Form on which the TabStrip control is
contained. For example, placing the following code in the Load event causes
the spin controls to correctly appear on the Tabs:
Private Sub Form_Load()
Dim TmpStr As String
Me.Show
DoEvents
TmpStr = TabStrip1.Tabs(1).Caption
TabStrip1.Tabs(1).Caption = TmpStr
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.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbbug kbfix KB151078 |
---|
|