VB.NET Uppercase and Lowercase Strings
This code snippet shows how to make a string uppercase and lowercase using String class methods in VB.NET.
The ToUpper and ToLower methods convert a string in uppercase and lowercase respectively. These methods are easy to use. The following code shows how to use ToUppler and ToLower methods.
Dim aStr As String = "adgas"
Dim bStr As String = "ABNMDWER"
Dim strRes As String = aStr.ToUpper()
Console.WriteLine("Uppercase:" & strRes.ToString())
strRes = bStr.ToLower()
Console.WriteLine("Lowercase:" & strRes.ToString())
Conclusion
Hope this article would have helped you in understanding how to make a string uppercase and lowercase using String class methods in VB.NET.