let say that i have a textbox. In the text box "Welcome" . When the user use backspace to delete a letter i want the textbox to be " " (delete everything). Shortly he wont be able to have welcom or welco or welc .. in the text box he will have welcome or nothing. ( means i want to clear textbox when any of the letters are deleted)
Sub EditText1_TextChanged (Old As String, New As String)
If Old.IndexOf(New) = 0 AND Old.Length = New.Length + 1 Then
EditText1.Text = ""
End If
End Sub
(intercept the Backspace key on EditText (probably this can be achieved using Reflection) would be better)
Luca, it is really not needed to do such workaround... The TO should just set the "Welcome" into the EditText.Hint and leave the EditText-field empty. So your woraround it not needed in TextChanged-sub