Microsoft KB Archive/76520

= BUG: No Option Button Active (Dotted) in Frame =

Article ID: 76520

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q76520



SYMPTOMS
If you have more than one frame (or group) of option buttons, Visual Basic correctly marks one button as active (with a dot) in the first group of option buttons, but initially fails to place a dot anywhere in additional groups (or frames) of option buttons. You must manually click an option button in the additional group for the dot to appear in that group.



WORKAROUND
If you want a particular option button selected (containing the dot) in a group or frame, set that button's Value property in the Form_Load event Procedure. For example: Option3.Value = -1 This will place a dot in the Option3 button in addition to the dot in the Option1 button when you run the program again.

Note that you cannot place a dot in both the Option1 button and the Option2 button if they are both placed in the same frame. By putting a group of options in one frame, you are specifying that the user may choose only one of the grouped options.

Note also that buttons on a form outside any frame behave as a group.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem

 * 1) Start Visual Basic with a new project.
 * 2) Draw two frames on the form, with one frame being half the size of the form and the other frame being the other half of the form.
 * 3) Place two option buttons in each of the frames by selecting the Option Button tool from the Toolbox and pointing, clicking, and dragging the option buttons onto the frames.
 * 4) Run the program by pressing the F5 key. Note that there is only one option button containing a dot.

Additional query words: buglist1.00 buglist2.00 buglist3.00 2.00 3.00

Keywords: kbbug KB76520

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.