Hello again everyone!
How can I set my Textbox's CharacterCasing to TitleCase?
Printable View
Hello again everyone!
How can I set my Textbox's CharacterCasing to TitleCase?
You will need to do the title-casing manually at some point that you feel is most appropriate; for example, when the user leaves the textbox.
If you're using the CausesValidation property on your other controls, then use the Validating event of the textbox.
Hey Thanx for answering again! :)
I did this:
It's perhaps not the true VB.NET way of doing it, but it works, for now :)Code:Private Sub rdNone_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles rdNone.Click
txtAppFullNames.Text = StrConv(txtAppFullNames.Text, VbStrConv.ProperCase)
End Sub
The .NET way of which you speak would be the System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase method.