PRB: Option Button TabStop Property Is Set to True at Run-time

Last reviewed: May 6, 1996
Article ID: Q150239
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

A Microsoft Visual Basic program contains an Option button that is set to True at runtime. However, the program is designed so a user cannot get to the Option Button by using the Tab key. For this condition to occur, the TabStop property of the Option button is set to False and the Value property is set to True at design time. When running the program, you can tab to the Option button.

CAUSE

The TabStop property is changed to True at run-time.

STATUS

This behavior is by design.

WORKAROUND

Set the TabStop property to False in the LostFocus event of each option button.


Additional reference words: 4.00 vb4win vb4all
KBCategory: kbprb
KBSubcategory: PrgCtrlsStd




THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 6, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.