Results 1 to 3 of 3

Thread: Convert text to upper case?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2011
    Posts
    67

    Question 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

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Convert text to upper case?

    Call the ToUpper method on the string
    Code:
    Dim strWord As String = frmHome.TextBox1.Text.ToUpper()
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2011
    Posts
    67

    Re: Convert text to upper case?

    That's worked great, thank you!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width