BUG: eVB: Text Property in Textbox Ignores MaxLength Value (262416)
The information in this article applies to:
- Microsoft eMbedded Visual Basic 3.0
This article was previously published under Q262416 SYMPTOMS
If the TextBox control contains a string greater than the MaxLength value, the entire string is still displayed.
RESOLUTIONStep-by-Step Workaround- Open Microsoft eMbedded Visual Basic 3.0.
- Create a new Windows CE for the Pocket PC project. Form1 is created by default.
- Add a TextBox control and a CommandButton control to the form.
- Set the MaxLength property of the TextBox to 3.
- Add the following code:
Private Sub Command1_Click()
Text1.Text = "New Text"
End Sub
Private Sub Text1_Change()
If Len(Text1.Text) > Text1.MaxLength Then
Text1.Text = Mid(Text1.Text, 1, Text1.MaxLength)
End If
End Sub
- Run the application on the device or the emulator, and click the CommandButton.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbDSupport KB262416 |
---|
|