How can I capitalize first letter in a textbox?

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
Post Reply
kiidstuuff123
Posts: 3
Joined: Wed Nov 18, 2020 9:32 am

How can I capitalize first letter in a textbox?

Post by kiidstuuff123 »

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 » Sun Dec 13, 2020 5:21 pm
$letter = $textboxLastname.text[0]
Go to full post

jvierra
Posts: 14672
Joined: Tue May 22, 2007 9:57 am
Answers: 6
Has voted: 1 time
Been upvoted: 5 times
Contact:

Re: How can I capitalize first letter in a textbox?

Post by jvierra »

$letter = $textboxLastname.text[0]

kiidstuuff123
Posts: 3
Joined: Wed Nov 18, 2020 9:32 am

Re: How can I capitalize first letter in a textbox?

Post by kiidstuuff123 »

That worked thanks!

Post Reply