I had written the same issue before also . My intention is to limit the text size of a edit text , while entering the text . I had written a code , but it is not working .
My code is :
Sub txt1_TextChanged (Old As String, New As String)
old=txt1.Text
If old.Length > 2 Then new = old.SubString2(0,2)
End Sub
How to do this ?
My code is :
Sub txt1_TextChanged (Old As String, New As String)
old=txt1.Text
If old.Length > 2 Then new = old.SubString2(0,2)
End Sub
How to do this ?