Convert text to upper case?
Hi,
I am trying to put an upper case version of the text in a text box in my first from, into a string in a second form using this code.
Code:
Dim strWord As String = frmHome.TextBox1.Text(UCase)
UCase is underlined in blue and says "Overload resolution failed because no accessible 'UCase' accepts this number of arguments."
I am not sure how to fix this?
Thanks
Re: Convert text to upper case?
Call the ToUpper method on the string
Code:
Dim strWord As String = frmHome.TextBox1.Text.ToUpper()
Re: Convert text to upper case?
That's worked great, thank you!