BUG: No Option Button Active (Dotted) in Frame

Last reviewed: June 21, 1995
Article ID: Q76520
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, versions 2.0 and 3.0
- Microsoft Visual Basic programming system for Windows, version 1.0

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.

MORE INFORMATION

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 reference words: buglist1.00 buglist2.00 buglist3.00 1.00 2.00
3.00
KBCategory: kbprg kbbuglist
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: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.