How to do Uppercase and Lowercase in Visual Basic .NET
How to do Uppercase and Lowercase in Visual Basic.NET.
In this tutorial, you will learn how to do uppercase and lowercase to your strings in VB.Net.
First, create your own project and add the labels from the toolbox. (See sample image below).

Next, we are going to make the Label1 to uppercase and the Label2 to lowercase. Follow this line of code and paste it to your Form1 Load.
[vbnet]
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = "itsourcecode.com".ToUpper
Label2.Text = "itsourcecode.com".ToLower
End Sub
End Class
[/vbnet]Now, reload your project and see the results.
Here’s mine:

You would notice that our Label1 text is being modified into capital letters because of the string property .ToUpper.
Also, our Label2 text is being modified into small letters because of the string property .ToLower.
Take note of this string properties that can make your texts to uppercase and lowercase in VB.Net.
- string.ToUpper – lets your texts loaded as capital letters.
- string.ToLower – lets your texts loaded as small letters.
You can use these properties as you like as long as it is a string data type.
Congratulations! You have learned how to do Uppercase and Lowercase in VB.Net.
For questions or any other concerns or thesis/capstone creation with documentation, you can contact me through the following:
- E-Mail: [email protected]
- Facebook: facebook.com/kirk.lavapiez
- Contact No.: +639771069640
- Ian Hero L. Lavapiez
- BSIT Graduate, soon to be MIT.
- System Analyst and Developer
Related topic(s) that you may like:
- AutoCompleteCustomSource Property Textbox in VB.Net
- Select Multiple Columns from Multiple Tables in mySQL using VB.Net
Frequently Asked Questions
What does this VB.NET tutorial cover?
Focused VB.NET language or library tutorial showing a single concept with working code. Use as a building block when assembling a larger system.
What Visual Studio and SQL Server versions does this VB.NET project require?
Most projects use VB.NET WinForms on .NET Framework 4.5+ with SQL Server 2012 Express or higher. To run: install Visual Studio 2019 / 2022 (Community is free) with the ‘Desktop development with .NET’ workload, install SQL Server Express + SSMS, open the .sln file, build, run.
How do I set up the database for this VB.NET project?
Open SQL Server Management Studio (SSMS) and connect to your SQL Server (e.g. localhost\SQLEXPRESS). Right-click Databases, choose Restore Database OR New Database then import the included .sql script. Update the connection string in App.config (or in code-behind Module) with your server name + credentials. Rebuild and run.
Can I use this VB.NET project for a BSIT capstone or thesis?
Yes, VB.NET is one of the most accepted languages by Philippine BSIT panels. Extend it: add role-based access (admin/staff/customer login redirect), Crystal Reports or RDLC reports, dashboards with Chart control, audit log, multi-branch support. Pair with Chapter 1-5 documentation matching your panel’s rubric.
Why am I getting ‘connection error’ or ‘cannot find SQL Server’?
Three common VB.NET issues: (1) Connection error: SQL Server isn’t running. Open SQL Server Configuration Manager and verify SQL Server (SQLEXPRESS) service is started. (2) Wrong server name in connection string. Try .\SQLEXPRESS, (local)\SQLEXPRESS, or your machine name. (3) Login failed: SQL Server is set to ‘Windows-only’ authentication. Switch to Mixed Mode in SSMS Server Properties, Security.
Where can I find more VB.NET projects with source code?
Browse the VB.NET Projects hub for the full library. For C# WinForms alternatives see C# Projects. For ASP.NET web alternatives see ASP.NET Projects. For BSIT capstone idea lists see 150 Best Capstone Project Ideas.
