How would I be able to capitalize the first letter in a textbox?
For example:
textboxFirstname.text = 'john' -> 'John'
textboxLastname.text = 'doe' -> 'Doe'
by jvierra » Mon Dec 14, 2020 2:21 am
$letter = $textboxLastname.text[0]
Go to full post
Top
How would I be able to capitalize the first letter in a textbox?
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
-
- Posts: 6
- Last visit: Tue Feb 02, 2021 11:54 pm
Re: How would I be able to capitalize the first letter in a textbox?
try this
$textboxFirstname.text = (get-culture).textinfo.totitlecase($textboxFirstname.text)
$textboxFirstname.text = (get-culture).textinfo.totitlecase($textboxFirstname.text)