0

TextBox1.Text = StrConv(TextBox1.Text, VbStrConv.ProperCase)

i have place the code in the textbox1 textchanged event..

bt when i type a name it is writing it backward n it converts the last letter only in Uppercase eg... when i type geeta it show me --> Ateeg

Can u plz help me ...

3
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by geetajlo
1

it cause your cursor focus in first character after converted. then your next character will input as first character.
g -> G => first converted, cursor focus on the front of first Character : |G (| : is cursor)
ge -> Eg => |Eg
gee -> Eeg => |Eeg
geet ->Teeg => |Teeg
geeta -> Ateeg => |Ateeg

Votes + Comments
good explain
0

Can u help me .. i want only the first character to be uppercase that is Geeta

1

actually your code is great but don't use it in textbox changed event. maybe u can convert it after user fill all the textbox.

Votes + Comments
Good point
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.