Microsoft KB Archive/187394

{|
 * width="100%"|

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

 * }

Q187394

-

The information in this article applies to:


 * Microsoft Windows CE Toolkit for Visual Basic 5.0, version 1.0

-

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 that are listed at the beginning of this article.

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

Steps to Reproduce Behavior
 Start a new Windows CE Project in Visual Basic 5.0. Form1 is created by default. Add a Frame (Frame1) to Form1. Add a TextBox (Text1) inside of Frame1 by selecting the TextBox control in the ToolBox and drawing it in Frame1.  Add the following code to Form1:

     Private Sub Text1_Change Form1.Caption = Text1.Text End Sub  Press the F5 key to run the project. 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 kbOSWinCEsearch kbOSWinCE100 kbGrpDSVB

Issue type : kbbug

Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB500