Private Sub Text1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Text1.TextChanged
Text1.Text = Text1.Text.ToUpper
Text1.SelectionStart = Text1.Text.Length
End Sub
I think that is a good idea, but the problem is that the cursor is always at last position (Maybe I should use 'SelectionStart'), Also I can see some effect during asignation of upcase string when I try to type fast.
Private Sub Text1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Text1.TextChanged
Dim As Integer = Text1.SelectionStart
Text1.Text = Text1.Text.ToUpper
If >= 0 Then
Text1.SelectionStart =
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.