ARTICLE

Uppercase and Lowercase Strings in VB.NET

Posted by Mahesh Chand Articles | Strings, Arrays in VB.NET August 25, 2010
This code snippet shows how to make a string uppercase and lowercase using String class methods in VB.NET.
 
Reader Level:

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.

Login to add your contents and source code to this article
share this article :
post comment
 
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Team Foundation Server Hosting
Become a Sponsor