FIX: TextBox Change Event Does Not Fire When Contained In Frame

ID: Q187394


The information in this article applies to:


SYMPTOMS

The TextBox Change event does not fire when the control is contained in a Frame control.


RESOLUTION

To resolve this issue, take the following steps:

  1. Ensure that the TextBox is not contained inside a Frame, but on top of one.


  2. In the Form_Load event, set the ZOrder of the TextBox as follows:

    Text1.ZOrder 0



STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new Windows CE Project in Visual Basic 5.0. Form1 is created by default.


  2. Add a Frame (Frame1) to Form1.


  3. Add a TextBox (Text1) inside of Frame1 by selecting the TextBox control in the ToolBox and drawing it in Frame1.


  4. Add the following code to Form1:
    
          Private Sub Text1_Change()
            Form1.Caption = Text1.Text
          End Sub 


  5. Press the F5 key to run the project.


  6. Type in the TextBox, and note that the Change event does not fire.


Additional query words: vbce vbce5 vbce6 wince wce


Keywords          : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbWinCE100 kbGrpVB 
Version           : WINDOWS:1.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: March 2, 1999