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
You can create a new function:
Then you can use it this way:
.NET 3.5,
String.Joinneeds an array: