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



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
  • Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
  • Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0

This article was previously published under Q150239

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.

WORKAROUND

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

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:6/29/2004
Keywords:kbCtrl kbprb KB150239