|
-
Jul 18th, 2004, 07:19 PM
#1
Thread Starter
Hyperactive Member
VB.NET Proper Case
I use this code so that the text of the TextBox1 will change to Proper Case;
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
TextBox1.Text = StrConv(TextBox1.Text, VbStrConv.ProperCase)
SendKeys.Send("{End}")
End Sub
But the problem of this code, When I type "HELLO" and i will going to erase "E" using backspace, the cursor goes to the end (at the right side of O).
Anybody has a better idea for this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|