FIX: TextBox Change Event Does Not Fire When Contained In Frame
ID: 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:
- Ensure that the TextBox is not contained inside a Frame, but on top of
one.
- 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
- 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 kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug