BUG: Unable to Tab Through Controls on UserControl (192196)
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 Q192196 SYMPTOMS
When a UserControl containing constituent controls is placed on a form,
while the UserControl is the only control on the form, tabbing through the
constituent controls does not loop.
CAUSE
This is because Visual Basic treats the UserControl as one control. Because
there is no other control to give focus to, no looping occurs.
RESOLUTION
Manually set focus to the control with the TabIndex of 0 in the KeyPress
event of the last control in the tab sequence. See the MORE INFORMATION
section below for sample code.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug KB192196 |
---|
|