PRB: eVB: Option Button Property Value Is Always True at Run Time (260117)



The information in this article 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 "More Information" 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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start Microsoft eMbedded Visual Basic 3.0.
  2. Create a new Windows CE for the Pocket PC project. Form1 is created by default.
  3. Add an Option Button to Form1.
  4. 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
    					
  5. Run the project in emulation or on the device. The Option Button is checked.

Modification Type:MajorLast Reviewed:9/4/2002
Keywords:kbDSupport kbprb KB260117