Microsoft KB Archive/260117

= PRB: eVB: Option Button Property Value Is Always True at Run Time =

Article ID: 260117

Article Last Modified on 9/4/2002

-

APPLIES TO


 * Microsoft eMbedded Visual Basic 3.0

-



This article was previously published under Q260117



SYMPTOMS
In eMbedded Visual Basic, an Option button may remain checked even if you have explicitly set its value to False in the Form_load event. This occurs when the Option button is the first control in the tab order and can receive focus.



RESOLUTION
Put an item that can receive focus immediately before the first Option Button in the tab order. You can use the sample code shown in the &quot;More Information&quot; section and add a Textbox control to Form1 with its TabIndex property set to 0. When you run the project, you should see that the Option Button is not checked, even if you remove the code from the Form_Load event.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
 Start Microsoft eMbedded Visual Basic 3.0. Create a new Windows CE for the Pocket PC project. Form1 is created by default. Add an Option Button to Form1.  In Form1, paste the following code: Option Explicit

Private Sub Form_Load Option1.Value = False End Sub

Private Sub Form_OKClick App.End End Sub  Run the project in emulation or on the device. The Option Button is checked.</ol>

Additional query words: wce evb

Keywords: kbprb KB260117

-

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

© Microsoft Corporation. All rights reserved.