Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8746871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:15:47+00:00 2026-06-13T12:15:47+00:00

Hello i was just wondering is there anyway to reverse this code so that

  • 0

Hello i was just wondering is there anyway to reverse this code so that the first letter is lowercase and the rest of the word is caps?

Dim s As String = "the quick brown fox jumps over the lazy dog"
Dim s2 As String = StrConv(s, VbStrConv.ProperCase)
MessageBox.Show(s2)

I’m using .net frameworks 3.5

Here is the answer! Thanks Tim!

Dim s As String = TextBox1.Text
Dim s2 = String.Join(" ", s.Split() .Select(Function(w)UppercaseAllButFirst(w)).ToArray())
TextBox2.Text = s2
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:15:48+00:00Added an answer on June 13, 2026 at 12:15 pm

    You can create a new function:

    Public Shared Function UppercaseAllButFirst(s As String) As String
        ' check for empty string
        If (String.IsNullOrEmpty(s)) Then
            Return String.Empty
        End If
        Return Char.ToLower(s(0)) & s.Substring(1).ToUpper()
    End Function
    

    Then you can use it this way:

    Dim s2 = String.Join(" ", s.Split().Select(Function(w) UppercaseAllButFirst(w)))
    

    .NET 3.5, String.Join needs an array:

    String.Join(" ", s.Split().Select(Function(w) UppercaseAllButFirst(w)).ToArray())
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I was just wondering how this line of code works (it has been
gcc (GCC) 4.6.3 c89 Hello, I am just wondering if this is the best
Just wondering if there is a way around this (or if it is even
Hello fellow Computer People! I could do this myself, but was just wondering if
Not a vital question, just wondering if there is any onliner to do this.
Hello I just enabled Legacy mode authorization in Jenkins and it seems that it
I just did a syntax like this mysql_real_escape_string($var = 'Hello'); print_r($var); and I got
I was just wondering if there is a clean implementation to getting elements before
Just wondering if anyone could help me with this. I'm new to actionscript, and
Hello just wondering why firbug is stating NaN even when these inputs have information

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.