|
-
Aug 7th, 2007, 06:29 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [02/03] CharacterCasing TitleCase
Hello again everyone!
How can I set my Textbox's CharacterCasing to TitleCase?
-
Aug 7th, 2007, 06:32 AM
#2
Re: [02/03] CharacterCasing 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.
-
Aug 7th, 2007, 06:50 AM
#3
Thread Starter
Hyperactive Member
Re: [02/03] CharacterCasing TitleCase
Hey Thanx for answering again! 
I did this:
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
It's perhaps not the true VB.NET way of doing it, but it works, for now
-
Aug 7th, 2007, 07:58 AM
#4
Re: [RESOLVED] [02/03] CharacterCasing TitleCase
The .NET way of which you speak would be the System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase method.
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
|