Jump to content
Xtreme .Net Talk

Recommended Posts

  • Moderators
Posted
   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

Visit...Bassic Software
Posted

Thanks Robby.

 

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.

  • Moderators
Posted

What do you mean "Maybe I should use 'SelectionStart' " ?

Is that not what I posted?

 

As for typing fast, I've held down a key which is probably 10 chars/second and they're all upper case.

Visit...Bassic Software
Posted

I used this, and it's work well

 

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

 

Thank you for your help Robby :)

 

 

P.D. I'm sorry, but my English is not very good

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...