PRB: Error Setting CanGetFocus Property to False (180216)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
This article was previously published under Q180216 SYMPTOMS
When creating a custom ActiveX control using Microsoft Visual Basic, you
get the following error when setting the CanGetFocus of the UserControl
object to False:
Can't have child controls capable of receiving focus on a UserControl
whose CanGetFocus property is False.
RESOLUTION
To work around this behavior, do one of the following:
- Remove all controls that can receive focus.
-or-
- Set the UserControl's Enabled property to False instead of setting the
CanGetFocus property.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbbug kbprb KB180216 |
---|
|